79c4324644
Change-Id: I2d302dda68298877c65c99147f5bf22186a59aac
35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
From 406e6587036e916c9fa5507e5bcb624ae394442d Mon Sep 17 00:00:00 2001
|
|
From: Michal Privoznik <mprivozn@redhat.com>
|
|
Date: Tue, 4 May 2021 08:21:59 +0200
|
|
Subject: [PATCH 054/108] virCapabilitiesHostNUMAInitReal: Free @cpus properly
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
The @cpus variable is an array of structs in which each item
|
|
contains a virBitmap member. As such it is not enough to just
|
|
VIR_FREE() the array - each bitmap has to be freed too.
|
|
|
|
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
(cherry picked from commit 26a24a702c47403effadb355b7e37f7cf5a488db)
|
|
---
|
|
src/conf/capabilities.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/conf/capabilities.c b/src/conf/capabilities.c
|
|
index 99b69aebb5..d6ec1f12f4 100644
|
|
--- a/src/conf/capabilities.c
|
|
+++ b/src/conf/capabilities.c
|
|
@@ -1690,6 +1690,7 @@ virCapabilitiesHostNUMAInitReal(virCapsHostNUMAPtr caps)
|
|
|
|
cleanup:
|
|
virBitmapFree(cpumap);
|
|
+ virCapabilitiesClearHostNUMACellCPUTopology(cpus, ncpus);
|
|
VIR_FREE(cpus);
|
|
VIR_FREE(siblings);
|
|
VIR_FREE(pageinfo);
|
|
--
|
|
2.33.0
|
|
|