From d2728cc24581d8a2f40c7ffed2a10fd2da79015f Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 14 Feb 2012 15:51:01 -0700 Subject: [PATCH] daemon: plug memory leak Leak introduced in commit bb2eddc6. * daemon/remote.c (remoteDispatchAuthPolkit): Also free pkout on success. --- daemon/remote.c | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/remote.c b/daemon/remote.c index 1cea942e8d..9c61306880 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; -- GitLab