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>
This commit is contained in:
@@ -376,6 +376,7 @@ static inline unsigned int DW_CFA_operand(unsigned long insn)
|
||||
|
||||
extern struct dwarf_frame *dwarf_unwind_stack(unsigned long,
|
||||
struct dwarf_frame *);
|
||||
extern void dwarf_free_frame(struct dwarf_frame *);
|
||||
extern int dwarf_parse_section(char *, char *, struct module *);
|
||||
extern void dwarf_module_unload(struct module *);
|
||||
|
||||
|
Reference in New Issue
Block a user