From: Kirill Shchetiniuk <[email protected]>
Signed-off-by: Kirill Shchetiniuk <[email protected]>
---
src/qemu/qemu_migration.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c
index 06b8f388fe..ef56482e82 100644
--- a/src/qemu/qemu_migration.c
+++ b/src/qemu/qemu_migration.c
@@ -7142,7 +7142,7 @@ qemuMigrationSrcToLegacyFile(virQEMUDriver *driver,
qemuDomainObjPrivate *priv = vm->privateData;
int ret = -1;
int pipeFD[2] = { -1, -1 };
- char *errbuf = NULL;
+ g_autofree char *errbuf = NULL;
if (compressor && virPipe(pipeFD) < 0)
return -1;
@@ -7188,7 +7188,6 @@ qemuMigrationSrcToLegacyFile(virQEMUDriver *driver,
if (errbuf) {
VIR_DEBUG("Compression binary stderr: %s", NULLSTR(errbuf));
- VIR_FREE(errbuf);
}
return ret;
--
2.49.0