From 5be283ca5eb7f82eaf28147ddcf66261a6972b07 Mon Sep 17 00:00:00 2001
From: Ali Mohammed <ali.mohammed@hpe.com>
Date: Mon, 23 Jan 2023 10:50:32 +0100
Subject: [PATCH] free allocated core lists

---
 maestro/core.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/maestro/core.c b/maestro/core.c
index c9e5da51..36935200 100644
--- a/maestro/core.c
+++ b/maestro/core.c
@@ -808,6 +808,11 @@ mstro_core_finalize(void)
         s_hb, mstro_status_description(s_hb));
     goto BAILOUT;
   }
+  /**free allocated numa cores lists for pinning*/
+  NFREE(g_numa_transport_bind_cores);
+  NFREE(g_numa_cq_bind_cores);
+  NFREE(g_numa_pm_pc_bind_cores);
+  NFREE(g_numa_op_bind_cores);
 
   if(g_initdata) {
     /* had some initdata */
-- 
GitLab