diff --git a/opal/runtime/opal_init.c b/opal/runtime/opal_init.c index 6e8c46ac71..49a81e66d9 100644 --- a/opal/runtime/opal_init.c +++ b/opal/runtime/opal_init.c @@ -322,19 +322,19 @@ opal_init(void) } /* initialize the memory manager / tracker */ - if (OPAL_SUCCESS != opal_mem_hooks_init()) { + if (OPAL_SUCCESS != (ret = opal_mem_hooks_init())) { error = "opal_mem_hooks_init"; goto return_error; } /* initialize the memory checker, to allow early support for annotation */ - if (OPAL_SUCCESS != opal_memchecker_base_open()) { + if (OPAL_SUCCESS != (ret = opal_memchecker_base_open())) { error = "opal_memchecker_base_open"; goto return_error; } /* select the memory checker */ - if (OPAL_SUCCESS != opal_memchecker_base_select()) { + if (OPAL_SUCCESS != (ret = opal_memchecker_base_select())) { error = "opal_memchecker_base_select"; goto return_error; } @@ -350,8 +350,15 @@ opal_init(void) } /* setup the carto framework */ - opal_carto_base_open(); - opal_carto_base_select(); + if (OPAL_SUCCESS != (ret = opal_carto_base_open())) { + error = "opal_carto_base_open"; + goto return_error; + } + + if (OPAL_SUCCESS != (ret = opal_carto_base_select())) { + error = "opal_carto_base_select"; + goto return_error; + } /* * Need to start the event and progress engines if noone else is.