Commit 4f8c734d8ed1bf669a21f37d35f044edb5695e43
1 parent
728dc9e6
Missing free in some test code
There was a missing free causing a memory leak in some test code. The memory leak was not in library code.
Showing
1 changed file
with
1 additions
and
0 deletions
qpdf/qpdf-ctest.c
| @@ -228,6 +228,7 @@ static void test06(char const* infile, | @@ -228,6 +228,7 @@ static void test06(char const* infile, | ||
| 228 | qpdf_set_object_stream_mode(qpdf, qpdf_o_generate); | 228 | qpdf_set_object_stream_mode(qpdf, qpdf_o_generate); |
| 229 | qpdf_write(qpdf); | 229 | qpdf_write(qpdf); |
| 230 | report_errors(); | 230 | report_errors(); |
| 231 | + free(buf); | ||
| 231 | } | 232 | } |
| 232 | 233 | ||
| 233 | static void test07(char const* infile, | 234 | static void test07(char const* infile, |