From 15131809c235047c94387ef9aff207117191ed0b Mon Sep 17 00:00:00 2001 From: Nick Alcock Date: Thu, 25 Mar 2021 16:32:46 +0000 Subject: 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 * testsuite/libctf-writable/symtypetab-nonlinker-writeout.c: Don't leak buf. --- libctf/testsuite/libctf-writable/symtypetab-nonlinker-writeout.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libctf/testsuite') 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; -- cgit v1.1