Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1732259

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

From Josh Poimboeuf <jpoimboe@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2] tools: objtool: fix memory leak in elf_create_rela_section()
Date 2017-09-14 15:00 +0200
Message-ID <upBUl-59p-1@gated-at.bofh.it> (permalink)
References <upv2y-UJ-11@gated-at.bofh.it> <upvvz-1l9-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] tools: objtool: fix memory leak in elf_create_rela_section() Josh Poimboeuf <jpoimboe@redhat.com> - 2017-09-14 00:50 +0200
  Re: [PATCH] tools: objtool: fix memory leak in  elf_create_rela_section() Ingo Molnar <mingo@kernel.org> - 2017-09-14 07:40 +0200
    [PATCH v2] tools: objtool: fix memory leak in elf_create_rela_section() Martin Kepplinger <martink@posteo.de> - 2017-09-14 08:10 +0200
      Re: [PATCH v2] tools: objtool: fix memory leak in  elf_create_rela_section() Josh Poimboeuf <jpoimboe@redhat.com> - 2017-09-14 15:00 +0200
      [tip:core/urgent] tools/objtool: Fix memory leak in  elf_create_rela_section() tip-bot for Martin Kepplinger <tipbot@zytor.com> - 2017-09-14 16:20 +0200
      [tip:core/urgent] tools/objtool: Fix memory leak in  elf_create_rela_section() tip-bot for Martin Kepplinger <tipbot@zytor.com> - 2017-09-15 10:50 +0200
      [tip:core/urgent] objtool: Fix memory leak in  elf_create_rela_section() tip-bot for Martin Kepplinger <tipbot@zytor.com> - 2017-09-15 11:50 +0200

csiph-web