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>
Tue, 29 Nov 2011 17:52:46 +0000 (17:52 +0000)
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);
   }
 }