Skip to content

Commit 6f1fa35

Browse files
authored
Merge pull request #6807 from ggouaillardet/topic/ess_base_leak
ess/base: fix a misc memory leak in orte_ess_base_proc_binding()
2 parents d0dc621 + 24f2961 commit 6f1fa35

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

orte/mca/ess/base/ess_base_fns.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
* Copyright (c) 2011-2012 Los Alamos National Security, LLC.
1414
* All rights reserved.
1515
* Copyright (c) 2014-2018 Intel, Inc. All rights reserved.
16-
* Copyright (c) 2014-2017 Research Organization for Information Science
17-
* and Technology (RIST). All rights reserved.
16+
* Copyright (c) 2014-2019 Research Organization for Information Science
17+
* and Technology (RIST). All rights reserved.
1818
* $COPYRIGHT$
1919
*
2020
* Additional copyrights may follow
@@ -278,6 +278,8 @@ int orte_ess_base_proc_binding(void)
278278
}
279279
}
280280
}
281+
} else {
282+
hwloc_bitmap_free(cpus);
281283
}
282284
} else {
283285
OPAL_OUTPUT_VERBOSE((5, orte_ess_base_framework.framework_output,

0 commit comments

Comments
 (0)