1
1

Make sure to protect the finalize call so tools like ompi_info

do not segv.

This commit was SVN r14054.
Этот коммит содержится в:
Josh Hursey 2007-03-17 19:47:54 +00:00
родитель 6d29146748
Коммит d03073e87d
4 изменённых файлов: 12 добавлений и 4 удалений

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

@ -28,7 +28,9 @@
int ompi_crcp_base_close(void)
{
/* Close the selected component */
ompi_crcp.crcp_finalize();
if( NULL != ompi_crcp.crcp_finalize ) {
ompi_crcp.crcp_finalize();
}
/* Close all available modules that are open */
mca_base_components_close(ompi_crcp_base_output,

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

@ -25,7 +25,9 @@
int opal_crs_base_close(void)
{
/* Call the component's finalize routine */
opal_crs.crs_finalize();
if( NULL != opal_crs.crs_finalize ) {
opal_crs.crs_finalize();
}
/* Close all available modules that are open */
mca_base_components_close(opal_crs_base_output,

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

@ -29,7 +29,9 @@
int orte_filem_base_close(void)
{
/* Close the selected component */
orte_filem.filem_finalize();
if( NULL != orte_filem.filem_finalize ) {
orte_filem.filem_finalize();
}
/* Close all available modules that are open */
mca_base_components_close(orte_filem_base_output,

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

@ -30,7 +30,9 @@ int orte_snapc_base_close(void)
{
/* Close the selected component */
orte_snapc.snapc_finalize();
if( NULL != orte_snapc.snapc_finalize ) {
orte_snapc.snapc_finalize();
}
/* Close all available modules that are open */
mca_base_components_close(orte_snapc_base_output,