Skip to content

Commit 4d58b8d

Browse files
committed
ess/pmi: plug a memory leak
Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent c0c5dd8 commit 4d58b8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

orte/mca/ess/pmi/ess_pmi_module.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Copyright (c) 2012-2013 Los Alamos National Security, LLC.
1414
* All rights reserved.
1515
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
16-
* Copyright (c) 2016 Research Organization for Information Science
16+
* Copyright (c) 2016-2017 Research Organization for Information Science
1717
* and Technology (RIST). All rights reserved.
1818
* $COPYRIGHT$
1919
*
@@ -345,6 +345,7 @@ static int rte_init(void)
345345
&pname, &val, OPAL_STRING);
346346
if (OPAL_SUCCESS == ret && NULL != val) {
347347
u16 = opal_hwloc_compute_relative_locality(mycpuset, val);
348+
free(val);
348349
} else {
349350
/* all we can say is that it shares our node */
350351
u16 = OPAL_PROC_ON_CLUSTER | OPAL_PROC_ON_CU | OPAL_PROC_ON_NODE;

0 commit comments

Comments
 (0)