summaryrefslogtreecommitdiff
path: root/pngrutil.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2017-08-07 06:31:58 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2017-08-07 06:31:58 -0500
commitc362a8c80ef1141510378a3e5759f5ab493c1f5f (patch)
tree1d3962e96e710459ced1c1d6c05275d3702e31b7 /pngrutil.c
parentc339da7fc27d5d61632233b37bc36418f2ab7de1 (diff)
downloadlibpng-c362a8c80ef1141510378a3e5759f5ab493c1f5f.tar.gz
[libpng16] Free eXIf_buf when detecting bad byte-order specifier.
Diffstat (limited to 'pngrutil.c')
-rw-r--r--pngrutil.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pngrutil.c b/pngrutil.c
index d61736518..89a2bfdcc 100644
--- a/pngrutil.c
+++ b/pngrutil.c
@@ -2071,6 +2071,8 @@ png_handle_eXIf(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
{
png_crc_finish(png_ptr, length);
png_chunk_benign_error(png_ptr, "incorrect byte-order specifier");
+ png_free(png_ptr, info_ptr->eXIf_buf);
+ info_ptr->eXIf_buf = NULL;
return;
}
}