From e906e86a542f174de138bc8845cf67b2d58fcebb Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Sun, 21 Feb 2016 13:28:03 +1100 Subject: [PATCH] remove a leak in make_palette() The XS leaked the temp image array (not the images themselves) used to pass the images to i_quant_makemap() --- Imager.xs | 1 + 1 file changed, 1 insertion(+) diff --git a/Imager.xs b/Imager.xs index e16b42dd..ae2e8659 100644 --- a/Imager.xs +++ b/Imager.xs @@ -3205,6 +3205,7 @@ i_img_make_palette(HV *quant_hv, ...) PUSHs(sv_c); } ip_cleanup_quant_opts(aTHX_ &quant); + myfree(imgs); void -- 2.39.5