Re: [PATCH v2] tools: objtool: fix memory leak in elf_create_rela_section()

From: Josh Poimboeuf
Date: Thu Sep 14 2017 - 08:50:51 EST


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@xxxxxxxxx>
> ---
>
> 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@xxxxxxxxxx>

--
Josh