[Pkg-libvirt-commits] [libguestfs] 01/29: btrfs: fix leak in btrfs_scrub_status

Hilko Bengen bengen at moszumanska.debian.org
Sun Nov 1 17:14:14 UTC 2015


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

bengen pushed a commit to annotated tag upstream/1.29.48
in repository libguestfs.

commit 9f683fbf0f07da9c498915f503d5cc94db30389f
Author: Pino Toscano <ptoscano at redhat.com>
Date:   Thu Jun 18 13:34:12 2015 +0200

    btrfs: fix leak in btrfs_scrub_status
    
    Properly free the output buffer.
---
 daemon/btrfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index 2f875ae..050bf18 100644
--- a/daemon/btrfs.c
+++ b/daemon/btrfs.c
@@ -1814,7 +1814,7 @@ do_btrfs_scrub_status (const char *path)
   CLEANUP_FREE char *path_buf = NULL;
   CLEANUP_FREE char *err = NULL;
   CLEANUP_FREE_STRING_LIST char **lines = NULL;
-  char *out;
+  CLEANUP_FREE char *out = NULL;
   int r;
   guestfs_int_btrfsscrub *ret;
 

-- 
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