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.
This commit is contained in:
Nick Alcock 2021-03-25 16:32:46 +00:00
parent 0bd65ce30a
commit 15131809c2
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -202,6 +202,7 @@ try_maybe_reporting (int report)
}
ctf_file_close (fp);
free (buf);
return;