aboutsummaryrefslogtreecommitdiff
path: root/libctf/testsuite
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/testsuite
parent0bd65ce30a869559251a34da105fbe45df5a85b3 (diff)
downloadbinutils-15131809c235047c94387ef9aff207117191ed0b.zip
binutils-15131809c235047c94387ef9aff207117191ed0b.tar.gz
binutils-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/testsuite')
-rw-r--r--libctf/testsuite/libctf-writable/symtypetab-nonlinker-writeout.c1
1 files changed, 1 insertions, 0 deletions
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;