]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
qemuMonitorTextAddDevice: avoid unconditional leak
authorJim Meyering <meyering@redhat.com>
Tue, 16 Feb 2010 07:22:34 +0000 (08:22 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 16 Feb 2010 16:49:05 +0000 (17:49 +0100)
* src/qemu/qemu_monitor_text.c (qemuMonitorTextAddDevice): Free the
device name buffer.

src/qemu/qemu_monitor_text.c

index e993699f4b684bd635cc936839e7d48f9c68108b..c71bf1dff51f2f8ac18e8b5c476a45c984419e11 100644 (file)
@@ -2087,6 +2087,7 @@ int qemuMonitorTextAddDevice(qemuMonitorPtr mon,
 cleanup:
     VIR_FREE(cmd);
     VIR_FREE(reply);
+    VIR_FREE(safedev);
     return ret;
 }