From 814af7e832ed4949d5a92714e83992f9dc4fda90 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Thu, 23 Aug 2018 22:04:28 +0100 Subject: [PATCH] Fix 72 byte leak when ICC profile is compatible --- libvips/colour/icc_transform.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libvips/colour/icc_transform.c b/libvips/colour/icc_transform.c index ba8439e8..20aa14e9 100644 --- a/libvips/colour/icc_transform.c +++ b/libvips/colour/icc_transform.c @@ -1277,6 +1277,8 @@ vips_icc_is_compatible_profile( VipsImage *image, return( FALSE ); } + VIPS_FREEF( cmsCloseProfile, profile ); + return( TRUE ); }