Skip to content
Commit 0998b7a0 authored by Martin Kepplinger's avatar Martin Kepplinger Committed by Ingo Molnar
Browse files

objtool: Fix memory leak in elf_create_rela_section()



Let's free the allocated char array 'relaname' before returning,
in order to avoid leaking memory.

Signed-off-by: default avatarMartin Kepplinger <martink@posteo.de>
Acked-by: default avatarJosh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: mingo.kernel.org@gmail.com
Link: http://lkml.kernel.org/r/20170914060138.26472-1-martink@posteo.de


Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 711aab1d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment