]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuMonitorTextAddUSBDisk: avoid unconditional leak
authorJim Meyering <meyering@redhat.com>
Tue, 16 Feb 2010 12:51:38 +0000 (13:51 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 16 Feb 2010 17:09:13 +0000 (18:09 +0100)
* src/qemu/qemu_monitor_text.c (qemuMonitorTextAddUSBDisk): Free
command output buffer.

src/qemu/qemu_monitor_text.c

index c71bf1dff51f2f8ac18e8b5c476a45c984419e11..62ffcc69287b0530547c351ba1980be00a2f9352 100644 (file)
@@ -1229,6 +1229,7 @@ int qemuMonitorTextAddUSBDisk(qemuMonitorPtr mon,
 cleanup:
     VIR_FREE(cmd);
     VIR_FREE(safepath);
+    VIR_FREE(info);
     return ret;
 }