[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170914125044.23mxcexdv6z7nndl@treble>
Date: Thu, 14 Sep 2017 07:50:44 -0500
From: Josh Poimboeuf <jpoimboe@...hat.com>
To: Martin Kepplinger <martink@...teo.de>
Cc: mingo.kernel.org@...il.com, linux-kernel@...r.kernel.org
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@...teo.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@...hat.com>
--
Josh
Powered by blists - more mailing lists