diff options
author | Alan Modra <amodra@gmail.com> | 2025-01-01 22:47:16 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2025-01-01 22:47:16 +1030 |
commit | 597de453a2291a798024471a3d7c5c0b79201f94 (patch) | |
tree | 684b0382dfda5120c048e9d168b78bbe8b702ebd /gdb/testsuite/gdb.python/py-commands-breakpoint.py | |
parent | b492153908463bd351eaa2cf3802117ce9e7c479 (diff) | |
download | binutils-597de453a2291a798024471a3d7c5c0b79201f94.zip binutils-597de453a2291a798024471a3d7c5c0b79201f94.tar.gz binutils-597de453a2291a798024471a3d7c5c0b79201f94.tar.bz2 |
gas dw2gencfi memory leaks
Some of these could have remained as malloc'd memory, but that would
require quite a bit of code to traverse frch_cfi_data for example, and
would rely on matching cfi directives (ie. valid input). Just put
them on the notes obstack instead.
* dw2gencfi.c (alloc_fde_entry): Use notes_calloc.
(alloc_cfi_insn_data): Likewise.
(cfi_end_fde): Don't free frch_cfi_data.
(cfi_add_label): Use notes_strdup.
(cfi_add_CFA_remember_state): Use notes_alloc.
(cfi_add_CFA_restore_state): Don't free.
(dot_cfi_escape): Use notes_alloc.
(cfi_finish): Free cies after each pass, not before. Clear
out static vars too.
Diffstat (limited to 'gdb/testsuite/gdb.python/py-commands-breakpoint.py')
0 files changed, 0 insertions, 0 deletions