]> xenbits.xensource.com Git - libvirt.git/commitdiff
daemon: avoid memory leak
authorajia@redhat.com <ajia@redhat.com>
Sun, 18 Sep 2011 16:36:10 +0000 (00:36 +0800)
committerEric Blake <eblake@redhat.com>
Mon, 19 Sep 2011 19:03:18 +0000 (13:03 -0600)
Introduced in commit efa7fc9f.

* daemon/remote.c: fix memory leak in remoteDispatchDomainBlockStatsFlags

Signed-off-by: Alex Jia <ajia@redhat.com>
daemon/remote.c

index 38bbb10785b35449803f5f7dc1ead8b8444adb39..45244f8f1c93a814af5d630b8c8a5ac62923951e 100644 (file)
@@ -997,6 +997,8 @@ cleanup:
             VIR_FREE(ret->params.params_val);
         }
     }
+    if (dom)
+        virDomainFree(dom);
     VIR_FREE(params);
     return rv;
 }