Messages in this thread | | | Date | Thu, 14 Sep 2017 07:50:44 -0500 | From | Josh Poimboeuf <> | Subject | Re: [PATCH v2] tools: objtool: fix memory leak in elf_create_rela_section() |
| |
On Thu, Sep 14, 2017 at 08:01:38AM +0200, Martin Kepplinger wrote: > Let's free the allocated char array relaname before returning > in order to avoid leaking memory. > > Signed-off-by: Martin Kepplinger <martink@posteo.de> > --- > > I should've allocated some brain resources before freeing some computer's.
Oops. I also failed to engage the brain. Sometimes the simplest patches are the most deceptive. ;-)
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
-- Josh
| |