From 32dead4ee384afa8dc4da9a8a9d49ab944318c35 Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Tue, 30 Aug 2016 15:42:29 +0200 Subject: [PATCH] WebPPictureDistortion(): free() -> WebPSafeFree() missed one! Change-Id: I643170451b3ac07c748b70a9abfe8af17a716b24 --- src/enc/picture_psnr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/enc/picture_psnr.c b/src/enc/picture_psnr.c index 81ab1b5c..329757de 100644 --- a/src/enc/picture_psnr.c +++ b/src/enc/picture_psnr.c @@ -110,7 +110,7 @@ int WebPPictureDistortion(const WebPPicture* src, const WebPPicture* ref, VP8SSIMAccumulatePlane(tmp1, w, tmp2, w, w, h, &stats[c]); } } - free(tmp_plane); + WebPSafeFree(tmp_plane); } } else { int has_alpha, uv_w, uv_h;