If we don't release the OPAL utils explicitly there will be a memory leak.
This commit was SVN r24505.
Этот коммит содержится в:
родитель
7f34a28c8f
Коммит
80fe617cd2
@ -337,7 +337,11 @@ int orte_daemon(int argc, char *argv[])
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* finalize the OPAL utils. As they are opened again from orte_init->opal_init
|
||||||
|
* we continue to have a reference count on them. So we have to finalize them twice...
|
||||||
|
*/
|
||||||
|
opal_finalize_util();
|
||||||
|
|
||||||
if ((int)ORTE_VPID_INVALID != orted_globals.fail) {
|
if ((int)ORTE_VPID_INVALID != orted_globals.fail) {
|
||||||
orted_globals.abort=false;
|
orted_globals.abort=false;
|
||||||
/* some vpid was ordered to fail. The value can be positive
|
/* some vpid was ordered to fail. The value can be positive
|
||||||
|
@ -622,7 +622,11 @@ int orterun(int argc, char *argv[])
|
|||||||
if (ORTE_SUCCESS != (rc = orte_init(&argc, &argv, ORTE_PROC_HNP))) {
|
if (ORTE_SUCCESS != (rc = orte_init(&argc, &argv, ORTE_PROC_HNP))) {
|
||||||
ORTE_ERROR_LOG(rc);
|
ORTE_ERROR_LOG(rc);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
/* finalize the OPAL utils. As they are opened again from orte_init->opal_init
|
||||||
|
* we continue to have a reference count on them. So we have to finalize them twice...
|
||||||
|
*/
|
||||||
|
opal_finalize_util();
|
||||||
|
|
||||||
/* check for request to report uri */
|
/* check for request to report uri */
|
||||||
if (NULL != orterun_globals.report_uri) {
|
if (NULL != orterun_globals.report_uri) {
|
||||||
@ -792,6 +796,7 @@ int orterun(int argc, char *argv[])
|
|||||||
DONE:
|
DONE:
|
||||||
ORTE_UPDATE_EXIT_STATUS(orte_exit_status);
|
ORTE_UPDATE_EXIT_STATUS(orte_exit_status);
|
||||||
orte_quit();
|
orte_quit();
|
||||||
|
|
||||||
return orte_exit_status;
|
return orte_exit_status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user