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.15.8~3 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=eb7ec6170eca278fb910e18ca1f7ca81c6b507c0;p=libguestfs.git ruby: Memory leak: Free roots array along handle close path. --- 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); } }