perl: Memory leak: Free roots array along handle close path.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 29 Nov 2011 18:19:54 +0000 (18:19 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 29 Nov 2011 19:44:34 +0000 (19:44 +0000)
generator/generator_perl.ml

index c9ec4fb..10a2387 100644 (file)
@@ -181,6 +181,7 @@ _close_handle (guestfs_h *g)
 
   for (i = 0; i < len; ++i)
     SvREFCNT_dec (cbs[i]);
+  free (cbs);
 }
 
 MODULE = Sys::Guestfs  PACKAGE = Sys::Guestfs