From 2fdd441a4af20802fa324a2f18477ba3592b5df5 Mon Sep 17 00:00:00 2001 From: "ajia@redhat.com" Date: Mon, 19 Sep 2011 00:36:10 +0800 Subject: [PATCH] daemon: avoid memory leak Introduced in commit efa7fc9f. * daemon/remote.c: fix memory leak in remoteDispatchDomainBlockStatsFlags Signed-off-by: Alex Jia --- daemon/remote.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.39.5