If we don't release the OPAL utils explicitly there will be a memory leak.
This commit was SVN r24505.
Этот коммит содержится в:
родитель
7f34a28c8f
Коммит
80fe617cd2
@ -337,6 +337,10 @@ int orte_daemon(int argc, char *argv[])
|
||||
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) {
|
||||
orted_globals.abort=false;
|
||||
|
@ -623,6 +623,10 @@ int orterun(int argc, char *argv[])
|
||||
ORTE_ERROR_LOG(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 */
|
||||
if (NULL != orterun_globals.report_uri) {
|
||||
@ -792,6 +796,7 @@ int orterun(int argc, char *argv[])
|
||||
DONE:
|
||||
ORTE_UPDATE_EXIT_STATUS(orte_exit_status);
|
||||
orte_quit();
|
||||
|
||||
return orte_exit_status;
|
||||
}
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user