]> git.baikalelectronics.ru Git - kernel.git/commit
objtool: Fix memory leak in decode_instructions()
authorKamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Thu, 19 Oct 2017 16:27:24 +0000 (11:27 -0500)
committerIngo Molnar <mingo@kernel.org>
Fri, 20 Oct 2017 07:43:21 +0000 (09:43 +0200)
commitbdeb747e378f1124bf56a342dbd46413d0311ca1
treea51030fa33b9ecdeabb603ea0975bd7c355687ec
parentb511188d430e9a6f0a322f9c65722d271d3023ba
objtool: Fix memory leak in decode_instructions()

When an error occurs before adding an allocated insn to the list, free
it before returning.

Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/336da800bf6070eae11f4e0a3b9ca64c27658114.1508430423.git.jpoimboe@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
tools/objtool/check.c