qemuMonitorTextAddUSBDisk: avoid unconditional leak

* src/qemu/qemu_monitor_text.c (qemuMonitorTextAddUSBDisk): Free
command output buffer.
This commit is contained in:
Jim Meyering 2010-02-16 13:51:38 +01:00
parent b78fddea39
commit 7ac2787019

View File

@ -1229,6 +1229,7 @@ int qemuMonitorTextAddUSBDisk(qemuMonitorPtr mon,
cleanup: cleanup:
VIR_FREE(cmd); VIR_FREE(cmd);
VIR_FREE(safepath); VIR_FREE(safepath);
VIR_FREE(info);
return ret; return ret;
} }