Skip to content

Commit

Permalink
mpir: fix memory leak in mpir_hwtopo.c
Browse files Browse the repository at this point in the history
The value buffer obtained via MPIR_pmi_get_jobattr need be freed.
  • Loading branch information
hzhou committed Jul 20, 2023
1 parent 5d62e24 commit c562642
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util/mpir_hwtopo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c562642

Please sign in to comment.