Couple of minor cleanups
This commit was SVN r27135.
Этот коммит содержится в:
родитель
d6cbff6d4e
Коммит
05f0b4c653
@ -583,6 +583,7 @@ static int raw_link_local_files(orte_job_t *jdata,
|
|||||||
ORTE_NAME_PRINT(&proc->name)));
|
ORTE_NAME_PRINT(&proc->name)));
|
||||||
|
|
||||||
/* get the session dir name in absolute form */
|
/* get the session dir name in absolute form */
|
||||||
|
path = NULL;
|
||||||
rc = orte_session_dir_get_name(&path, &prefix, NULL,
|
rc = orte_session_dir_get_name(&path, &prefix, NULL,
|
||||||
orte_process_info.nodename,
|
orte_process_info.nodename,
|
||||||
NULL, &proc->name);
|
NULL, &proc->name);
|
||||||
@ -592,6 +593,7 @@ static int raw_link_local_files(orte_job_t *jdata,
|
|||||||
/* doesn't exist with correct permissions, and/or we can't
|
/* doesn't exist with correct permissions, and/or we can't
|
||||||
* create it - either way, we are done
|
* create it - either way, we are done
|
||||||
*/
|
*/
|
||||||
|
free(path);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -636,11 +638,10 @@ static int raw_link_local_files(orte_job_t *jdata,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
free(path);
|
free(path);
|
||||||
if (NULL != prefix) {
|
|
||||||
free(prefix);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
if (NULL != prefix) {
|
||||||
|
free(prefix);
|
||||||
|
}
|
||||||
free(my_dir);
|
free(my_dir);
|
||||||
return ORTE_SUCCESS;
|
return ORTE_SUCCESS;
|
||||||
#endif
|
#endif
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user