From c562642de221e966e8b72b1db38f99a5d6fae222 Mon Sep 17 00:00:00 2001 From: Hui Zhou Date: Thu, 13 Jul 2023 22:53:29 -0500 Subject: [PATCH] mpir: fix memory leak in mpir_hwtopo.c The value buffer obtained via MPIR_pmi_get_jobattr need be freed. --- src/util/mpir_hwtopo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/mpir_hwtopo.c b/src/util/mpir_hwtopo.c index e7aec5f9380..33e88bcf49d 100644 --- a/src/util/mpir_hwtopo.c +++ b/src/util/mpir_hwtopo.c @@ -210,6 +210,7 @@ int MPII_hwtopo_init(void) * file is really the underlying system. */ hwloc_topology_set_flags(hwloc_topology, HWLOC_TOPOLOGY_FLAG_IS_THISSYSTEM); } + MPL_free(xmlfile); } hwloc_topology_set_io_types_filter(hwloc_topology, HWLOC_TYPE_FILTER_KEEP_ALL);