Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
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 8001792f5a..8fb9a3214c 100644
--- a/src/qemu/qemu_migration.c
+++ b/src/qemu/qemu_migration.c
@@ -6237,7 +6237,7 @@ qemuMigrationSrcFetchMirrorStats(virQEMUDriver *driver,
size_t i;
qemuDomainObjPrivate *priv = vm->privateData;
bool nbd = false;
- GHashTable *blockinfo = NULL;
+ g_autoptr(GHashTable) blockinfo = NULL;
qemuDomainMirrorStats *stats = &jobInfo->mirrorStats;
for (i = 0; i < vm->def->ndisks; i++) {
@@ -6274,6 +6274,5 @@ qemuMigrationSrcFetchMirrorStats(virQEMUDriver *driver,
stats->total += data->end;
}
- virHashFree(blockinfo);
return 0;
}
--
2.31.1