[PATCH 09/23] qemuMigrationSrcFetchMirrorStats: Automatically free GHashTable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 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




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux