1
1

Glad someone found that last error - caused me to review the code and find a couple of other cleanups! Nothing major, but just ensure that things flow smoothly since we had a "shadowed" variable.

This commit was SVN r18643.
Этот коммит содержится в:
Ralph Castain 2008-06-10 19:15:59 +00:00
родитель 67cd1849f7
Коммит f9d809748c

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

@ -41,8 +41,7 @@
*/ */
int orte_rmaps_base_map_job(orte_job_t *jdata) int orte_rmaps_base_map_job(orte_job_t *jdata)
{ {
orte_job_map_t *map=NULL; orte_job_map_t *map;
char *output=NULL;
int rc; int rc;
/* NOTE: NO PROXY COMPONENT REQUIRED - REMOTE PROCS ARE NOT /* NOTE: NO PROXY COMPONENT REQUIRED - REMOTE PROCS ARE NOT
@ -78,16 +77,15 @@ int orte_rmaps_base_map_job(orte_job_t *jdata)
/* assign the map object to this job */ /* assign the map object to this job */
jdata->map = map; jdata->map = map;
} else { } else {
map = jdata->map; if (!jdata->map->display_map) {
if (!map->display_map) { jdata->map->display_map = orte_rmaps_base.display_map;
map->display_map = orte_rmaps_base.display_map;
} }
} }
/* go ahead and map the job */ /* go ahead and map the job */
if (ORTE_SUCCESS != (rc = orte_rmaps_base.active_module->map_job(jdata))) { if (ORTE_SUCCESS != (rc = orte_rmaps_base.active_module->map_job(jdata))) {
ORTE_ERROR_LOG(rc); ORTE_ERROR_LOG(rc);
goto CLEANUP; return rc;
} }
/* if we wanted to display the map, now is the time to do it */ /* if we wanted to display the map, now is the time to do it */
@ -99,9 +97,4 @@ int orte_rmaps_base_map_job(orte_job_t *jdata)
} }
return ORTE_SUCCESS; return ORTE_SUCCESS;
CLEANUP:
if (NULL != map) OBJ_RELEASE(map);
if (NULL != output) free(output);
return rc;
} }