From e2692e25defb0eab9f87a2232770abefd063b634 Mon Sep 17 00:00:00 2001 From: Matthias Bolte Date: Fri, 11 Dec 2009 00:56:04 +0100 Subject: [PATCH] Fix reference leak in remoteDispatchStorageVolCreateXmlFrom --- daemon/remote.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon/remote.c b/daemon/remote.c index 31176153ee..7a43046bac 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -4118,12 +4118,15 @@ remoteDispatchStorageVolCreateXmlFrom (struct qemud_server *server ATTRIBUTE_UNU clonevol = get_nonnull_storage_vol (conn, args->clonevol); if (clonevol == NULL) { + virStoragePoolFree(pool); remoteDispatchConnError(rerr, conn); return -1; } newvol = virStorageVolCreateXMLFrom (pool, args->xml, clonevol, args->flags); + virStorageVolFree(clonevol); + virStoragePoolFree(pool); if (newvol == NULL) { remoteDispatchConnError(rerr, conn); return -1; -- GitLab