Skip to content

Commit 2359a05

Browse files
author
David Wootton
committed
Fix possible memory leak in ompi_dpm_dyn_finalize
Signed-off-by: David Wootton <dwootton@us.ibm.com>
1 parent d01a626 commit 2359a05

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ompi/dpm/dpm.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1779,6 +1779,7 @@ int ompi_dpm_dyn_finalize(void)
17791779
}
17801780

17811781
disconnect_waitall(ompi_comm_num_dyncomm, objs);
1782+
cleanup_dpm_disconnect_objs(objs, ompi_comm_num_dyncomm);
17821783
}
17831784

17841785
return OMPI_SUCCESS;
@@ -1896,8 +1897,6 @@ static int disconnect_waitall (int count, ompi_dpm_disconnect_obj **objs)
18961897
/* force all non-blocking all-to-alls to finish */
18971898
ret = ompi_request_wait_all(2*totalcount, reqs, MPI_STATUSES_IGNORE);
18981899

1899-
/* Finally, free everything */
1900-
cleanup_dpm_disconnect_objs(objs, count);
19011900
free(reqs);
19021901

19031902
return ret;

0 commit comments

Comments
 (0)