ruby: Memory leak: Free roots array along handle close path.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 29 Nov 2011 17:47:18 +0000 (17:47 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 2 Dec 2011 08:36:56 +0000 (08:36 +0000)
(cherry picked from commit eb7ec6170eca278fb910e18ca1f7ca81c6b507c0)

generator/generator_ruby.ml

index a8416b4..a43b21f 100644 (file)
@@ -84,6 +84,7 @@ ruby_guestfs_free (void *gvp)
       rb_gc_unregister_address (roots[i]);
       free (roots[i]);
     }
+    free (roots);
   }
 }