]> git.imager.perl.org - imager.git/commitdiff
combine() - was leaking malloc()ed row buffers
authorTony Cook <tony@develop-help.com>
Tue, 23 Feb 2016 10:57:21 +0000 (21:57 +1100)
committerTony Cook <tony@develop-help.com>
Tue, 23 Feb 2016 10:57:21 +0000 (21:57 +1100)
combine.im

index 37e174d3402cd0c69735148137406e04db5da97f..b13a94109d1ad8fcd15e99b2c2bba38347752b6b 100644 (file)
@@ -75,6 +75,8 @@ i_combine(i_img **imgs, const int *channels, int in_count) {
     }
     IM_PLIN(out, 0, width, y, out_row);
   }
+  myfree(out_row);
+  myfree(in_row);
 #/code
 
   return out;