render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
9119d9
From f361614b6a8dd6a687f90c5a3a5cf51d8918dcfe Mon Sep 17 00:00:00 2001
9119d9
Message-Id: <f361614b6a8dd6a687f90c5a3a5cf51d8918dcfe@dist-git>
9119d9
From: =?UTF-8?q?J=C3=A1n=20Tomko?= <jtomko@redhat.com>
9119d9
Date: Thu, 6 Nov 2014 13:56:03 +0100
9119d9
Subject: [PATCH] Free job statistics from the migration cookie
9119d9
MIME-Version: 1.0
9119d9
Content-Type: text/plain; charset=UTF-8
9119d9
Content-Transfer-Encoding: 8bit
9119d9
9119d9
https://bugzilla.redhat.com/show_bug.cgi?id=1161124
9119d9
9119d9
==404== 232 bytes in 1 blocks are definitely lost in loss record 669 of 758
9119d9
==404==    at 0x4C2B934: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
9119d9
==404==    by 0x52A2BF3: virAlloc (viralloc.c:144)
9119d9
==404==    by 0x1D49AD70: qemuMigrationCookieAddStatistics (qemu_migration.c:554)
9119d9
==404==    by 0x1D49AD70: qemuMigrationBakeCookie (qemu_migration.c:1228)
9119d9
==404==    by 0x1D4A43B8: qemuMigrationFinish (qemu_migration.c:5002)
9119d9
==404==    by 0x1D4C9339: qemuDomainMigrateFinish3Params (qemu_driver.c:11526)
9119d9
9119d9
Introduced by commit 5d6fb96
9119d9
9119d9
(cherry picked from commit 1d1c5ecd1360d74292a5db18fbd90fe27ec2551b)
9119d9
Signed-off-by: Ján Tomko <jtomko@redhat.com>
9119d9
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
9119d9
---
9119d9
 src/qemu/qemu_migration.c | 1 +
9119d9
 1 file changed, 1 insertion(+)
9119d9
9119d9
diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c
9119d9
index cc245f6..98fd376 100644
9119d9
--- a/src/qemu/qemu_migration.c
9119d9
+++ b/src/qemu/qemu_migration.c
9119d9
@@ -219,6 +219,7 @@ static void qemuMigrationCookieFree(qemuMigrationCookiePtr mig)
9119d9
     VIR_FREE(mig->lockState);
9119d9
     VIR_FREE(mig->lockDriver);
9119d9
     VIR_FREE(mig->nbd);
9119d9
+    VIR_FREE(mig->jobInfo);
9119d9
     VIR_FREE(mig);
9119d9
 }
9119d9
 
9119d9
-- 
9119d9
2.1.3
9119d9