--- mjpegtools-1.9.0/lavtools/png2yuv.c.orig	2010-01-17 14:26:24.000000000 +0100
+++ mjpegtools-1.9.0/lavtools/png2yuv.c	2010-01-17 14:27:53.000000000 +0100
@@ -407,6 +407,7 @@
     return 2;
     }
 
+  png_destroy_read_struct(&png_ptr, &info_ptr, &end_info);
   fclose(pngfile);
 
   return 1;