aboutsummaryrefslogtreecommitdiff
path: root/libctf/ctf-archive.c
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2024-07-29 18:02:03 +0100
committerNick Alcock <nick.alcock@oracle.com>2024-07-31 21:10:06 +0100
commit4b04e01284f29a3d0e94fa0e0dd6a11be71c9a65 (patch)
tree1b756d88379fb4fb0e8dbaf84799df312c180496 /libctf/ctf-archive.c
parent21397b78f9a617c22cfafbf1eebd6fc4b2ecc160 (diff)
downloadgdb-4b04e01284f29a3d0e94fa0e0dd6a11be71c9a65.zip
gdb-4b04e01284f29a3d0e94fa0e0dd6a11be71c9a65.tar.gz
gdb-4b04e01284f29a3d0e94fa0e0dd6a11be71c9a65.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 'libctf/ctf-archive.c')
0 files changed, 0 insertions, 0 deletions