[psaux] Fix memory leak (#45986).

* src/psaux/psobjs.c (ps_parser_load_field) <T1_FIELD_TYPE_MM_BBOX>:
Free `temp' in case of error.
This commit is contained in:
Werner Lemberg 2015-09-17 17:56:53 +02:00
parent 7d364b7e51
commit 4942c2bb72
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2015-09-17 Werner Lemberg <wl@gnu.org>
[psaux] Fix memory leak (#45986).
* src/psaux/psobjs.c (ps_parser_load_field) <T1_FIELD_TYPE_MM_BBOX>:
Free `temp' in case of error.
2015-09-17 Werner Lemberg <wl@gnu.org>
[psaux] Improve tracing message.

View File

@ -1241,6 +1241,8 @@
: ( i == 2 ? "third"
: "fourth" ) ) ));
error = FT_THROW( Invalid_File_Format );
FT_FREE( temp );
goto Exit;
}