sh: Fix memory leak in dwarf_unwind_stack()
commited4fe7f488008f38d5f423f0bcc736b1779d6ddc
authorMatt Fleming <matt@console-pimps.org>
Sat, 10 Oct 2009 15:03:11 +0000 (10 16:03 +0100)
committerMatt Fleming <matt@console-pimps.org>
Sun, 11 Oct 2009 16:12:28 +0000 (11 17:12 +0100)
tree9d569f812409f9738a99b6a0d398028e85512a28
parenta6a2f2ad67506090e332f440457553c0ec011d68
sh: Fix memory leak in dwarf_unwind_stack()

If we broke out of the while (1) loop because the return address of
"frame" was zero, then "frame" needs to be free'd before we return.

Signed-off-by: Matt Fleming <matt@console-pimps.org>
arch/sh/include/asm/dwarf.h
arch/sh/kernel/dwarf.c