Fix small memory leak in error code path.

This commit is contained in:
Philip.Hazel 2016-12-08 16:52:26 +00:00
parent 14f6b9fb03
commit 561dff70d0
2 changed files with 3 additions and 0 deletions

View File

@ -196,6 +196,8 @@ wrong name.
28. Implemented pcre2_code_copy_with_tables(), and added pushtablescopy to
pcre2test for testing it.
29. Fix small memory leak in pcre2test.
Version 10.22 29-July-2016
--------------------------

View File

@ -4494,6 +4494,7 @@ switch(cmd)
if (fread(serial, 1, serial_size, f) != serial_size)
{
fprintf(outfile, "** Wrong return from fread()\n");
free(serial);
return PR_ABEND;
}
fclose(f);