[Pkg-libvirt-commits] [libguestfs] 129/165: virt-log: Fix memory leak because of wrong type of CLEANUP_* function.

Hilko Bengen bengen at moszumanska.debian.org
Sat Aug 30 08:25:12 UTC 2014


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

bengen pushed a commit to branch experimental
in repository libguestfs.

commit 98a1392849da06c0579c2506a30e5c7d52a93b52
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Mon Jun 16 12:25:05 2014 +0100

    virt-log: Fix memory leak because of wrong type of CLEANUP_* function.
    
    This fixes commit a3475cf9bbbbd3514b117d5edd75d9c0e239d43a.
---
 cat/log.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cat/log.c b/cat/log.c
index 9460708..9a556a8 100644
--- a/cat/log.c
+++ b/cat/log.c
@@ -317,7 +317,7 @@ do_log_journal (void)
     return -1;
 
   while ((r = guestfs_journal_next (g)) > 0) {
-    CLEANUP_FREE struct guestfs_xattr_list *xattrs = NULL;
+    CLEANUP_FREE_XATTR_LIST struct guestfs_xattr_list *xattrs = NULL;
     const char *priority_str, *identifier, *comm, *pid, *message;
     size_t priority_len, identifier_len, comm_len, pid_len, message_len;
     int priority = LOG_INFO;

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