From ef2b3ac8d21f4fb4f071309dbbb842691c4546f9 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Fri, 28 Oct 2016 09:20:55 +0900 Subject: [PATCH] rml/oob: fix misc memory leaks in open_conduit() Signed-off-by: Gilles Gouaillardet --- orte/mca/rml/oob/rml_oob_component.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/orte/mca/rml/oob/rml_oob_component.c b/orte/mca/rml/oob/rml_oob_component.c index 9956d2b375..7c5ffac6d2 100644 --- a/orte/mca/rml/oob/rml_oob_component.c +++ b/orte/mca/rml/oob/rml_oob_component.c @@ -160,6 +160,7 @@ static orte_rml_base_module_t* open_conduit(opal_list_t *attributes) NULL != comp_attrib) { /* they specified specific components - could be multiple */ comps = opal_argv_split(comp_attrib, ','); + free(comp_attrib); for (i=0; NULL != comps[i]; i++) { if (0 == strcasecmp(comps[i], "oob")) { /* we are a candidate */ @@ -188,6 +189,7 @@ static orte_rml_base_module_t* open_conduit(opal_list_t *attributes) NULL != comp_attrib) { /* see if we are on the list */ comps = opal_argv_split(comp_attrib, ','); + free(comp_attrib); for (i=0; NULL != comps[i]; i++) { if (0 == strcasecmp(comps[i], "oob")) { /* we cannot be a candidate */