diff options
author | Alan Modra <amodra@gmail.com> | 2023-04-06 09:31:08 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-04-06 09:52:17 +0930 |
commit | a5f3ca48236a79b0cf78a82dee1cc0241a975eb7 (patch) | |
tree | c07eb48f20c9ef37f84890fe0a2fd7c4b61c4eb8 /gdbsupport/next-iterator.h | |
parent | ff93c7b1a208996747759c4533d1d7d6acb41bce (diff) | |
download | gdb-a5f3ca48236a79b0cf78a82dee1cc0241a975eb7.zip gdb-a5f3ca48236a79b0cf78a82dee1cc0241a975eb7.tar.gz gdb-a5f3ca48236a79b0cf78a82dee1cc0241a975eb7.tar.bz2 |
objdump print_debugging_info memory leaks
Fix memory leaks and do a general tidy of the code for printing coff
and stabs debug.
* prdbg.c: Delete unnneeded forward function declarations.
Delete unnecessary casts throughout. Free all strings
returned from pop_type throughout file.
(struct pr_stack): Delete "num_parents". Replace tests for
"num_parents" non-zero with tests of "parents" non-NULL
throughout. Free "parents" before assigning, and set to NULL
after freeing. Remove const from "method". Always strdup
strings assigned to method, and free before assigning.
(print_debugging_info): Free info.stack and info.filename.
Diffstat (limited to 'gdbsupport/next-iterator.h')
0 files changed, 0 insertions, 0 deletions