aboutsummaryrefslogtreecommitdiff
path: root/libctf
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2021-03-25 16:32:46 +0000
committerNick Alcock <nick.alcock@oracle.com>2021-03-25 16:32:50 +0000
commit15131809c235047c94387ef9aff207117191ed0b (patch)
treee73749725de9c2249a0384dea91fb6d40e3e8ccd /libctf
parent0bd65ce30a869559251a34da105fbe45df5a85b3 (diff)
downloadgdb-15131809c235047c94387ef9aff207117191ed0b.zip
gdb-15131809c235047c94387ef9aff207117191ed0b.tar.gz
gdb-15131809c235047c94387ef9aff207117191ed0b.tar.bz2
libctf: fix memory leak in a test
Harmless, but causes noise that makes it harder to spot other leaks. libctf/ChangeLog 2021-03-25 Nick Alcock <nick.alcock@oracle.com> * testsuite/libctf-writable/symtypetab-nonlinker-writeout.c: Don't leak buf.
Diffstat (limited to 'libctf')
-rw-r--r--libctf/ChangeLog5
-rw-r--r--libctf/testsuite/libctf-writable/symtypetab-nonlinker-writeout.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/libctf/ChangeLog b/libctf/ChangeLog
index c5d52f2..d4a94bb 100644
--- a/libctf/ChangeLog
+++ b/libctf/ChangeLog
@@ -1,5 +1,10 @@
2021-03-25 Nick Alcock <nick.alcock@oracle.com>
+ * testsuite/libctf-writable/symtypetab-nonlinker-writeout.c: Don't
+ leak buf.
+
+2021-03-25 Nick Alcock <nick.alcock@oracle.com>
+
PR libctf/27628
* ctf-lookup.c (isqualifier): Don't dereference out-of-bounds
qhash values.
diff --git a/libctf/testsuite/libctf-writable/symtypetab-nonlinker-writeout.c b/libctf/testsuite/libctf-writable/symtypetab-nonlinker-writeout.c
index 98144de..bdc3faa 100644
--- a/libctf/testsuite/libctf-writable/symtypetab-nonlinker-writeout.c
+++ b/libctf/testsuite/libctf-writable/symtypetab-nonlinker-writeout.c
@@ -202,6 +202,7 @@ try_maybe_reporting (int report)
}
ctf_file_close (fp);
+ free (buf);
return;