1
1

If we don't release the OPAL utils explicitly there will be a memory leak.

This commit was SVN r24505.
Этот коммит содержится в:
George Bosilca 2011-03-10 00:42:28 +00:00
родитель 7f34a28c8f
Коммит 80fe617cd2
2 изменённых файлов: 11 добавлений и 2 удалений

Просмотреть файл

@ -337,7 +337,11 @@ 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;
/* 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))) {
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;
}