diff --git a/ompi/dpm/dpm.c b/ompi/dpm/dpm.c index 6bb0b8c677..abee71526f 100644 --- a/ompi/dpm/dpm.c +++ b/ompi/dpm/dpm.c @@ -484,6 +484,9 @@ int ompi_dpm_connect_accept(ompi_communicator_t *comm, int root, if (NULL != mycpuset) { free(mycpuset); } + if (NULL != peer_ranks) { + free(peer_ranks); + } /* call add_procs on the new ones */ rc = MCA_PML_CALL(add_procs(new_proc_list, opal_list_get_size(&ilist))); free(new_proc_list);