]> xenbits.xensource.com Git - libvirt.git/commitdiff
remote: avoid memory leak
authorajia@redhat.com <ajia@redhat.com>
Sun, 18 Sep 2011 16:36:12 +0000 (00:36 +0800)
committerEric Blake <eblake@redhat.com>
Mon, 19 Sep 2011 19:34:52 +0000 (13:34 -0600)
Leak present since introduction of remoteDomainBuildEventGraphics
in commit 987e31e.

* src/remote/remote_driver.c: fix memory leak.

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

index 9d34b7ef0540da2eac6d8963728ee402952acaa3..1217d945007681adcb884526ff9854a34cb8c2b6 100644 (file)
@@ -3294,6 +3294,7 @@ no_memory:
         VIR_FREE(subject->identities);
         VIR_FREE(subject);
     }
+    virDomainFree(dom);
     return;
 }