remove a leak in make_palette()
authorTony Cook <tony@develop-help.com>
Sun, 21 Feb 2016 02:28:03 +0000 (13:28 +1100)
committerTony Cook <tony@develop-help.com>
Sun, 21 Feb 2016 02:28:03 +0000 (13:28 +1100)
The XS leaked the temp image array (not the images themselves) used
to pass the images to i_quant_makemap()

Imager.xs

index e16b42d..ae2e865 100644 (file)
--- 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