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 <gilles@rist.or.jp>
Этот коммит содержится в:
родитель
698dac108b
Коммит
831f7d9c9d
@ -102,9 +102,11 @@ static int orte_rml_base_close(void)
|
|||||||
if (NULL != comp && NULL != comp->close_conduit) {
|
if (NULL != comp && NULL != comp->close_conduit) {
|
||||||
comp->close_conduit(mod);
|
comp->close_conduit(mod);
|
||||||
}
|
}
|
||||||
|
free(mod);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
OBJ_DESTRUCT(&orte_rml_base.conduits);
|
||||||
|
|
||||||
OPAL_LIST_DESTRUCT(&orte_rml_base.actives)
|
OPAL_LIST_DESTRUCT(&orte_rml_base.actives)
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* reserved.
|
* reserved.
|
||||||
* Copyright (c) 2013 Cisco Systems, Inc. All rights reserved.
|
* Copyright (c) 2013 Cisco Systems, Inc. All rights reserved.
|
||||||
* Copyright (c) 2014-2016 Intel Corporation. All rights reserved.
|
* Copyright (c) 2014-2016 Intel Corporation. All rights reserved.
|
||||||
* Copyright (c) 2015 Research Organization for Information Science
|
* Copyright (c) 2015-2016 Research Organization for Information Science
|
||||||
* and Technology (RIST). All rights reserved.
|
* and Technology (RIST). All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
@ -134,6 +134,7 @@ char* orte_rml_API_get_contact_info(void)
|
|||||||
}
|
}
|
||||||
if (NULL != rc) {
|
if (NULL != rc) {
|
||||||
tmp = opal_argv_join(rc, ';');
|
tmp = opal_argv_join(rc, ';');
|
||||||
|
opal_argv_free(rc);
|
||||||
} else {
|
} else {
|
||||||
tmp = NULL;
|
tmp = NULL;
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user