[libvirt] [PATCH] daemon: plug memory leak

Leak introduced in commit bb2eddc6. * daemon/remote.c (remoteDispatchAuthPolkit): Also free pkout on success. --- daemon/remote.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/daemon/remote.c b/daemon/remote.c index 1cea942..9c61306 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -2536,6 +2536,7 @@ remoteDispatchAuthPolkit(virNetServerPtr server ATTRIBUTE_UNUSED, virNetServerClientSetIdentity(client, ident); virMutexUnlock(&priv->lock); virCommandFree(cmd); + VIR_FREE(pkout); VIR_FREE(ident); return 0; -- 1.7.7.6

On 02/15/2012 02:32 AM, Michal Privoznik wrote:
On 14.02.2012 23:52, Eric Blake wrote:
Leak introduced in commit bb2eddc6.
* daemon/remote.c (remoteDispatchAuthPolkit): Also free pkout on success. --- daemon/remote.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
ACK
Thanks; pushed. -- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
participants (2)
-
Eric Blake
-
Michal Privoznik