diff options
author | Alan Modra <amodra@gmail.com> | 2023-06-05 16:25:16 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-06-05 16:47:44 +0930 |
commit | fc998e4cb708899b5f75d8d4d2b79ed162437c41 (patch) | |
tree | a0b62f5c851792baca8ef9faa4f2c883306e87dd /Makefile.in | |
parent | 6fc018e9e593a3235dbf7026726ba4665373b741 (diff) | |
download | gdb-fc998e4cb708899b5f75d8d4d2b79ed162437c41.zip gdb-fc998e4cb708899b5f75d8d4d2b79ed162437c41.tar.gz gdb-fc998e4cb708899b5f75d8d4d2b79ed162437c41.tar.bz2 |
bfd_error_on_input messages
bfd_errmsg uses asprintf for bfd_error_on_input, which means we
currently leak memory. Keep a static pointer to the message and free
it in various places to minimise the leaks.
bfd_set_input_error (NULL, bfd_error_no_error) is a way to free up the
last string if that matters.
* bfd.c (input_error_msg): New static var.
(bfd_set_input_error): Free it here..
(bfd_init): ..and here..
(bfd_errmsg): ..and here. Use it for asprintf output.
Diffstat (limited to 'Makefile.in')
0 files changed, 0 insertions, 0 deletions