From 6042ec5141c2ba0b0897fafbcae7192767c1520f Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 29 Nov 2011 17:47:18 +0000 Subject: [PATCH] ruby: Memory leak: Free roots array along handle close path. (cherry picked from commit eb7ec6170eca278fb910e18ca1f7ca81c6b507c0) --- generator/generator_ruby.ml | 1 + 1 file changed, 1 insertion(+) diff --git a/generator/generator_ruby.ml b/generator/generator_ruby.ml index a8416b4..a43b21f 100644 --- a/generator/generator_ruby.ml +++ b/generator/generator_ruby.ml @@ -84,6 +84,7 @@ ruby_guestfs_free (void *gvp) rb_gc_unregister_address (roots[i]); free (roots[i]); } + free (roots); } } -- 1.8.3.1