Skip to content

Commit 8ba92d7

Browse files
committed
iof/base: plug a memory leak in orte_iof_base_close()
Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent e396b17 commit 8ba92d7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

orte/mca/iof/base/iof_base_frame.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Copyright (c) 2013 Los Alamos National Security, LLC. All rights reserved.
1313
* Copyright (c) 2013 Cisco Systems, Inc. All rights reserved.
1414
* Copyright (c) 2015-2016 Intel, Inc. All rights reserved.
15-
* Copyright (c) 2015 Research Organization for Information Science
15+
* Copyright (c) 2015-2017 Research Organization for Information Science
1616
* and Technology (RIST). All rights reserved.
1717
* $COPYRIGHT$
1818
*
@@ -89,6 +89,12 @@ static int orte_iof_base_close(void)
8989
orte_iof.finalize();
9090
}
9191

92+
if (!ORTE_PROC_IS_DAEMON) {
93+
OBJ_RELEASE(orte_iof_base.iof_write_stdout);
94+
if (!orte_xml_output) {
95+
OBJ_RELEASE(orte_iof_base.iof_write_stderr);
96+
}
97+
}
9298
return mca_base_framework_components_close(&orte_iof_base_framework, NULL);
9399
}
94100

0 commit comments

Comments
 (0)