[Pkg-libvirt-commits] [libguestfs] 01/87: fish: Fix memory leak in inspect/-i code (detected by valgrind).

Hilko Bengen bengen at moszumanska.debian.org
Wed Feb 19 21:09:52 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch debian
in repository libguestfs.

commit 1430feb640f9696834bd94e4a1bfe765e65cdec1
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Wed Dec 18 18:37:50 2013 +0000

    fish: Fix memory leak in inspect/-i code (detected by valgrind).
    
    This only manifested in the new virt-diff tool.
    
    (cherry picked from commit 70db54974b87c6b4384dbf8b839e0335e70189ae)
---
 fish/inspect.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/fish/inspect.c b/fish/inspect.c
index fadb3f1..e402493 100644
--- a/fish/inspect.c
+++ b/fish/inspect.c
@@ -112,6 +112,9 @@ inspect_mount (void)
     exit (EXIT_FAILURE);
   }
 
+  /* Free old global if there is one. */
+  free (root);
+
   root = roots[0];
   free (roots);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list