diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2024-07-29 18:02:03 +0100 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2024-07-30 11:30:51 +0100 |
commit | d56f5df657d41303b46f20fa80eae7ad3921b289 (patch) | |
tree | 5d4a7f71b4eb51fbaf87256ac7951bce7ee623e8 /gdb/sparcnbsd-tdep.c | |
parent | 17708cd4cd6fca37e0417e3da4cc16d609882ba9 (diff) | |
download | gdb-d56f5df657d41303b46f20fa80eae7ad3921b289.zip gdb-d56f5df657d41303b46f20fa80eae7ad3921b289.tar.gz gdb-d56f5df657d41303b46f20fa80eae7ad3921b289.tar.bz2 |
libctf: dump: fix small leak
If you asprintf something and then use it only as input to another asprintf,
it helps to free it afterwards.
libctf/
* ctf-dump.c (ctf_dump_header): Free the flagstr after use.
(ctf_dump): Make a NULL return slightly clearer.
Diffstat (limited to 'gdb/sparcnbsd-tdep.c')
0 files changed, 0 insertions, 0 deletions