summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2011-06-30 13:12:38 +0100
committerDaniel P. Berrange <berrange@redhat.com>2011-06-30 18:04:01 +0100
commit92fa2e58fd42bd7ae1b95f2f484dda218b7ddf18 (patch)
treed057ec8a796ed3f74a1c8a02aa92dccc0ded4c38
parentFix release of filtered stream messages (diff)
downloadlibvirt-92fa2e58fd42bd7ae1b95f2f484dda218b7ddf18.tar.gz
libvirt-92fa2e58fd42bd7ae1b95f2f484dda218b7ddf18.tar.bz2
libvirt-92fa2e58fd42bd7ae1b95f2f484dda218b7ddf18.zip
Fix leak of mdnsGroupName in virNetServer object
* src/rpc/virnetserver.c: Free mdnsGroupName
-rw-r--r--src/rpc/virnetserver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/virnetserver.c b/src/rpc/virnetserver.c
index 8a2b11314..0ef81fd18 100644
--- a/src/rpc/virnetserver.c
+++ b/src/rpc/virnetserver.c
@@ -746,6 +746,8 @@ void virNetServerFree(virNetServerPtr srv)
}
VIR_FREE(srv->clients);
+ VIR_FREE(srv->mdnsGroupName);
+
virNetServerUnlock(srv);
virMutexDestroy(&srv->lock);
VIR_FREE(srv);