From: Kirill Shchetiniuk <[email protected]>
Signed-off-by: Kirill Shchetiniuk <[email protected]>
---
src/qemu/qemu_monitor.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c
index 3d833eb818..d204682472 100644
--- a/src/qemu/qemu_monitor.c
+++ b/src/qemu/qemu_monitor.c
@@ -2340,7 +2340,7 @@ qemuMonitorMigrateToHost(qemuMonitor *mon,
int port)
{
int ret;
- char *uri = NULL;
+ g_autofree char *uri = NULL;
VIR_DEBUG("hostname=%s port=%d flags=0x%x", hostname, port, flags);
QEMU_CHECK_MONITOR(mon);
@@ -2351,7 +2351,6 @@ qemuMonitorMigrateToHost(qemuMonitor *mon,
ret = qemuMonitorJSONMigrate(mon, flags, uri);
- VIR_FREE(uri);
return ret;
}
--
2.49.0