diff options
author | Kamalesh Babulal <kamalesh@linux.vnet.ibm.com> | 2017-10-19 11:27:24 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-10-20 09:43:21 +0200 |
commit | b703798386fb7288d5a995bd2284a984a5e24f3c (patch) | |
tree | a51030fa33b9ecdeabb603ea0975bd7c355687ec /tools/objtool/objtool.c | |
parent | ce43f4fd6f103681c7485c2b1967179647e73555 (diff) | |
download | linux-b703798386fb7288d5a995bd2284a984a5e24f3c.tar.gz linux-b703798386fb7288d5a995bd2284a984a5e24f3c.tar.xz |
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>
Diffstat (limited to 'tools/objtool/objtool.c')
0 files changed, 0 insertions, 0 deletions