we are using IM6.7.6 in our production system. And we noticed that while doing the encoding of webp there is a memory leak. I've checked the latest version(6.7.9-7) and finding that the problem still exists. Following is the patch, pls check it, thx.
Code: Select all
Index: coders/webp.c
===================================================================
--- coders/webp.c (版本 9429)
+++ coders/webp.c (工作副本)
@@ -391,6 +391,7 @@
webp_status=WebPPictureImportRGBA(&picture,pixels,4*picture.width);
pixels=(unsigned char *) RelinquishMagickMemory(pixels);
webp_status=WebPEncode(&configure,&picture);
+ WebPPictureFree(&picture);
(void) CloseBlob(image);
return(webp_status == 0 ? MagickFalse : MagickTrue);
}