From: Richard W.M. Jones Date: Tue, 29 Nov 2011 17:47:18 +0000 (+0000) Subject: ruby: Memory leak: Free roots array along handle close path. X-Git-Tag: 1.14.5~5 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=6042ec5141c2ba0b0897fafbcae7192767c1520f;p=libguestfs.git ruby: Memory leak: Free roots array along handle close path. (cherry picked from commit eb7ec6170eca278fb910e18ca1f7ca81c6b507c0) --- 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); } }