Ugh - protect that --display-devel print with some NULL checks
This commit was SVN r31604.
Этот коммит содержится в:
родитель
c7f55be387
Коммит
60c554e097
@ -488,8 +488,10 @@ int orte_dt_print_proc(char **output, char *prefix, orte_proc_t *src, opal_data_
|
|||||||
hwloc_bitmap_free(mycpus);
|
hwloc_bitmap_free(mycpus);
|
||||||
asprintf(&tmp, "\n%sProcess OMPI jobid: %s App: %ld Process rank: %s Bound: %s", pfx2,
|
asprintf(&tmp, "\n%sProcess OMPI jobid: %s App: %ld Process rank: %s Bound: %s", pfx2,
|
||||||
ORTE_JOBID_PRINT(src->name.jobid), (long)src->app_idx,
|
ORTE_JOBID_PRINT(src->name.jobid), (long)src->app_idx,
|
||||||
ORTE_VPID_PRINT(src->name.vpid), str);
|
ORTE_VPID_PRINT(src->name.vpid), (NULL == str) ? "N/A" : str);
|
||||||
|
if (NULL != str) {
|
||||||
free(str);
|
free(str);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
/* just print a very simple output for users */
|
/* just print a very simple output for users */
|
||||||
asprintf(&tmp, "\n%sProcess OMPI jobid: %s App: %ld Process rank: %s Bound: N/A", pfx2,
|
asprintf(&tmp, "\n%sProcess OMPI jobid: %s App: %ld Process rank: %s Bound: N/A", pfx2,
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user