Skip to content

Commit 385da4e

Browse files
authored
Merge pull request #6866 from rhc54/topic/cov
Silence Coverity warning
2 parents ddfef30 + 0e878c1 commit 385da4e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ompi/dpm/dpm.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,9 @@ int ompi_dpm_connect_accept(ompi_communicator_t *comm, int root,
484484
if (NULL != mycpuset) {
485485
free(mycpuset);
486486
}
487+
if (NULL != peer_ranks) {
488+
free(peer_ranks);
489+
}
487490
/* call add_procs on the new ones */
488491
rc = MCA_PML_CALL(add_procs(new_proc_list, opal_list_get_size(&ilist)));
489492
free(new_proc_list);

0 commit comments

Comments
 (0)