From: Tony Cook Date: Sun, 21 Feb 2016 02:28:03 +0000 (+1100) Subject: remove a leak in make_palette() X-Git-Tag: v1.004_001~19 X-Git-Url: http://git.imager.perl.org/imager.git/commitdiff_plain/e906e86a542f174de138bc8845cf67b2d58fcebb 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() --- 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