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 504500c864..3d833eb818 100644
--- a/src/qemu/qemu_monitor.c
+++ b/src/qemu/qemu_monitor.c
@@ -890,7 +890,7 @@ qemuMonitorInitBalloonObjectPath(qemuMonitor *mon,
virDomainMemballoonDef *balloon)
{
ssize_t i, nprops = 0;
- char *path = NULL;
+ g_autofree char *path = NULL;
const char *name;
qemuMonitorJSONListPath **bprops = NULL;
@@ -970,7 +970,6 @@ qemuMonitorInitBalloonObjectPath(qemuMonitor *mon,
for (i = 0; i < nprops; i++)
qemuMonitorJSONListPathFree(bprops[i]);
VIR_FREE(bprops);
- VIR_FREE(path);
return;
}
--
2.49.0