Skip to content

Commit 831f7d9

Browse files
committed
rml/base: plug misc memory leaks
plug leaks in orte_rml_API_get_contact_info() and orte_rml_base_close() Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent 698dac1 commit 831f7d9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

orte/mca/rml/base/rml_base_frame.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,11 @@ static int orte_rml_base_close(void)
102102
if (NULL != comp && NULL != comp->close_conduit) {
103103
comp->close_conduit(mod);
104104
}
105+
free(mod);
105106
}
106107

107108
}
109+
OBJ_DESTRUCT(&orte_rml_base.conduits);
108110

109111
OPAL_LIST_DESTRUCT(&orte_rml_base.actives)
110112

orte/mca/rml/base/rml_base_stubs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* reserved.
77
* Copyright (c) 2013 Cisco Systems, Inc. All rights reserved.
88
* Copyright (c) 2014-2016 Intel Corporation. All rights reserved.
9-
* Copyright (c) 2015 Research Organization for Information Science
9+
* Copyright (c) 2015-2016 Research Organization for Information Science
1010
* and Technology (RIST). All rights reserved.
1111
* $COPYRIGHT$
1212
*
@@ -134,6 +134,7 @@ char* orte_rml_API_get_contact_info(void)
134134
}
135135
if (NULL != rc) {
136136
tmp = opal_argv_join(rc, ';');
137+
opal_argv_free(rc);
137138
} else {
138139
tmp = NULL;
139140
}

0 commit comments

Comments
 (0)