From abded69991f5132de64888e4a7cf2336e03674f1 Mon Sep 17 00:00:00 2001 From: Sergey Lebedev Date: Wed, 13 Mar 2024 16:49:32 +0000 Subject: [PATCH] TOPO: fix all numas sbgp cleanup --- src/components/topo/ucc_topo.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/topo/ucc_topo.c b/src/components/topo/ucc_topo.c index 8721d2fd2a..edcf76cead 100644 --- a/src/components/topo/ucc_topo.c +++ b/src/components/topo/ucc_topo.c @@ -206,6 +206,14 @@ void ucc_topo_cleanup(ucc_topo_t *topo) } ucc_free(topo->all_sockets); } + if (topo->all_numas) { + for (i = 0; i < topo->n_numas; i++) { + if (topo->all_numas[i].status == UCC_SBGP_ENABLED) { + ucc_sbgp_cleanup(&topo->all_numas[i]); + } + } + ucc_free(topo->all_numas); + } ucc_free(topo); } }