]> git.imager.perl.org - imager.git/commitdiff
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 e16b42dd915276b4eca50b556dd1310a03ed8ed4..ae2e86598bb5566f395cc56f8eb5ad809d4b3f99 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