diff --git a/ANNOUNCE b/ANNOUNCE index 602ee94ef..4710f3410 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -1,5 +1,5 @@ -Libpng 1.5.15beta08 - February 27, 2013 +Libpng 1.5.15beta08 - March 1, 2013 This is not intended to be a public release. It will be replaced within a few weeks by a public version or by another test version. @@ -64,11 +64,12 @@ Version 1.5.15beta06 [February 22, 2013] Version 1.5.15beta07 [February 27, 2013] Revised INSTALL to recommend using CPPFLAGS instead of INCLUDES. - Revised scripts/makefile.freebsd to respect ZLIBDIR and ZLIBINC. + Revised scripts/makefile.freebsd to respect ZLIBLIB and ZLIBINC. Revised scripts/dfn.awk to work with the buggy MSYS awk that has trouble with CRLF line endings. -Version 1.5.15beta08 [February 27, 2013] +Version 1.5.15beta08 [March 1, 2013] + Avoid a possible memory leak in contrib/gregbook/readpng.c Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/CHANGES b/CHANGES index 4d8ccd49c..612f0c741 100644 --- a/CHANGES +++ b/CHANGES @@ -4022,11 +4022,12 @@ Version 1.5.15beta06 [February 22, 2013] Version 1.5.15beta07 [February 27, 2013] Revised INSTALL to recommend using CPPFLAGS instead of INCLUDES. - Revised scripts/makefile.freebsd to respect ZLIBDIR and ZLIBINC. + Revised scripts/makefile.freebsd to respect ZLIBLIB and ZLIBINC. Revised scripts/dfn.awk to work with the buggy MSYS awk that has trouble with CRLF line endings. -Version 1.5.15beta08 [February 27, 2013] +Version 1.5.15beta08 [March 1, 2013] + Avoid a possible memory leak in contrib/gregbook/readpng.c Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/contrib/gregbook/readpng.c b/contrib/gregbook/readpng.c index 0b75fac6d..f5e1fb1a4 100644 --- a/contrib/gregbook/readpng.c +++ b/contrib/gregbook/readpng.c @@ -215,6 +215,10 @@ uch *readpng_get_image(double display_exponent, int *pChannels, ulg *pRowbytes) * libpng function */ if (setjmp(png_jmpbuf(png_ptr))) { + free(image_data); + image_data = NULL; + free(row_pointers); + row_pointers = NULL; png_destroy_read_struct(&png_ptr, &info_ptr, NULL); return NULL; }