aboutsummaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2011-06-06 15:03:26 -0600
committerEric Blake <eblake@redhat.com>2011-06-08 05:30:57 -0600
commitf17eeede1e945a19650636a21b9d8a5c2c94a89c (patch)
tree2b6d437f5e791a1f891132647dcfb3d95061ac9c /daemon
parentbuild: break some long lines (diff)
downloadlibvirt-f17eeede1e945a19650636a21b9d8a5c2c94a89c.tar.gz
libvirt-f17eeede1e945a19650636a21b9d8a5c2c94a89c.tar.bz2
libvirt-f17eeede1e945a19650636a21b9d8a5c2c94a89c.zip
daemon: plug memory leak
Detected by Coverity. Commit ef21beda was incomplete; it solved a leak one one path, but not on the other. * daemon/libvirtd.c (qemudSetLogging): Avoid leak on success.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/libvirtd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/libvirtd.c b/daemon/libvirtd.c
index 728031f0c..bcaa37b44 100644
--- a/daemon/libvirtd.c
+++ b/daemon/libvirtd.c
@@ -2783,6 +2783,7 @@ qemudSetLogging(struct qemud_server *server, virConfPtr conf,
VIR_FREE(userdir);
goto out_of_memory;
}
+ VIR_FREE(userdir);
}
} else {
if (virAsprintf(&tmp, "%d:stderr", virLogGetDefaultPriority()) < 0)