diff --git a/orte/mca/odls/base/odls_base_default_fns.c b/orte/mca/odls/base/odls_base_default_fns.c index 4f6ad2c95ca..c2874c89f47 100644 --- a/orte/mca/odls/base/odls_base_default_fns.c +++ b/orte/mca/odls/base/odls_base_default_fns.c @@ -422,7 +422,7 @@ int orte_odls_base_default_construct_child_list(opal_buffer_t *buffer, /* create the map - will already have been done for the novm case */ if (ORTE_SUCCESS != (rc = orte_rmaps_base_map_job(jdata))) { ORTE_ERROR_LOG(rc); - return rc; + goto REPORT_ERROR; } /* find our local procs */ for (n=0; n < jdata->map->nodes->size; n++) { @@ -457,7 +457,7 @@ int orte_odls_base_default_construct_child_list(opal_buffer_t *buffer, /* compute and save bindings of local children */ if (ORTE_SUCCESS != (rc = orte_rmaps_base_compute_bindings(jdata))) { ORTE_ERROR_LOG(rc); - return rc; + goto REPORT_ERROR; } }