Skip to content

Commit

Permalink
Leak in hwloc__xml_import_cpukind
Browse files Browse the repository at this point in the history
Looks like we always need free the locally allocated infos.
  • Loading branch information
hzhou committed Oct 11, 2022
1 parent a908085 commit b86f63f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hwloc/topology-xml.c
Expand Up @@ -1853,6 +1853,7 @@ hwloc__xml_import_cpukind(hwloc_topology_t topology,
hwloc_bitmap_free(cpuset);
} else {
hwloc_internal_cpukinds_register(topology, cpuset, forced_efficiency, infos, nr_infos, HWLOC_CPUKINDS_REGISTER_FLAG_OVERWRITE_FORCED_EFFICIENCY);
hwloc__free_infos(infos, nr_infos);
}

return state->global->close_tag(state);
Expand Down

0 comments on commit b86f63f

Please sign in to comment.