diff --git a/ompi/proc/proc.c b/ompi/proc/proc.c index 33732b5c2e..e8e72cd038 100644 --- a/ompi/proc/proc.c +++ b/ompi/proc/proc.c @@ -457,7 +457,7 @@ ompi_proc_find_and_add(const orte_process_name_t * name, bool* isnew) *isnew = true; rproc = OBJ_NEW(ompi_proc_t); if (NULL != rproc) { - opal_list_append(&ompi_proc_list, (opal_list_item_t*)proc); + opal_list_append(&ompi_proc_list, (opal_list_item_t*)rproc); rproc->proc_name = *name; } /* caller had better fill in the rest of the proc, or there's