Hello, there is a memory leak in coders/png.c on truncated (aka incompletely downloaded) files. The fix is below.
Index: coders/png.c =================================================================== --- coders/png.c (revision 13868) +++ coders/png.c (working copy) @@ -1697,6 +1697,7 @@ PNG_LIBPNG_VER_STRING); #endif + quantum_info = NULL; image=mng_info->image; /* @@ -1734,6 +1735,8 @@ #if defined(PNG_SETJMP_NOT_THREAD_SAFE) RelinquishSemaphoreInfo(png_semaphore); #endif + if (quantum_info != (QuantumInfo *) NULL) + quantum_info = DestroyQuantumInfo(quantum_info); if (png_pixels != (unsigned char *) NULL) png_pixels=(unsigned char *) RelinquishMagickMemory(png_pixels); if (logging != MagickFalse) -- Alexander E. Patrakov _______________________________________________ Magick-developers mailing list Magick-developers@imagemagick.org http://studio.imagemagick.org/mailman/listinfo/magick-developers