]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
qemu_driver: Resolve Coverity RESOURCE_LEAK
authorJohn Ferlan <jferlan@redhat.com>
Wed, 27 Aug 2014 19:37:13 +0000 (15:37 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 28 Aug 2014 12:12:17 +0000 (08:12 -0400)
Coverity found that the 'buf' wasn't VIR_FREE'd at exit.

src/qemu/qemu_driver.c

index 73959dab4a10c7c7aea8ca8d97681f0a7ecfe86a..323957e2858de2a4582ddd96a70b62feaba82abd 100644 (file)
@@ -10516,6 +10516,7 @@ qemuDomainGetBlockInfo(virDomainPtr dom,
     }
 
  cleanup:
+    VIR_FREE(buf);
     VIR_FREE(alias);
     virStorageSourceFree(meta);
     VIR_FORCE_CLOSE(fd);