Skip to content

Commit ef2b3ac

Browse files
committed
rml/oob: fix misc memory leaks in open_conduit()
Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent 831f7d9 commit ef2b3ac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

orte/mca/rml/oob/rml_oob_component.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ static orte_rml_base_module_t* open_conduit(opal_list_t *attributes)
160160
NULL != comp_attrib) {
161161
/* they specified specific components - could be multiple */
162162
comps = opal_argv_split(comp_attrib, ',');
163+
free(comp_attrib);
163164
for (i=0; NULL != comps[i]; i++) {
164165
if (0 == strcasecmp(comps[i], "oob")) {
165166
/* we are a candidate */
@@ -188,6 +189,7 @@ static orte_rml_base_module_t* open_conduit(opal_list_t *attributes)
188189
NULL != comp_attrib) {
189190
/* see if we are on the list */
190191
comps = opal_argv_split(comp_attrib, ',');
192+
free(comp_attrib);
191193
for (i=0; NULL != comps[i]; i++) {
192194
if (0 == strcasecmp(comps[i], "oob")) {
193195
/* we cannot be a candidate */

0 commit comments

Comments
 (0)