From: ajia@redhat.com Date: Sun, 18 Sep 2011 16:36:10 +0000 (+0800) Subject: daemon: avoid memory leak X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2fdd441a4af20802fa324a2f18477ba3592b5df5;p=libvirt.git daemon: avoid memory leak Introduced in commit efa7fc9f. * daemon/remote.c: fix memory leak in remoteDispatchDomainBlockStatsFlags Signed-off-by: Alex Jia --- diff --git a/daemon/remote.c b/daemon/remote.c index 38bbb10785..45244f8f1c 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -997,6 +997,8 @@ cleanup: VIR_FREE(ret->params.params_val); } } + if (dom) + virDomainFree(dom); VIR_FREE(params); return rv; }