Skip to content

Commit 2f8c759

Browse files
authored
Merge pull request #3100 from artpol84/fix_ucx_req/master
ompi/pml/ucx: Fix uninitialized UCX request field.
2 parents d1fed77 + 9448814 commit 2f8c759

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ompi/mca/pml/ucx/pml_ucx_request.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ static int mca_pml_ucx_persistent_request_free(ompi_request_t **rptr)
166166
mca_pml_ucx_persistent_request_detach(preq, tmp_req);
167167
ucp_request_free(tmp_req);
168168
}
169-
if (MCA_PML_BASE_SEND_BUFFERED == preq->send.mode) {
169+
if ((preq->flags & MCA_PML_UCX_REQUEST_FLAG_SEND) &&
170+
(MCA_PML_BASE_SEND_BUFFERED == preq->send.mode)) {
170171
OBJ_RELEASE(preq->ompi_datatype);
171172
}
172173
PML_UCX_FREELIST_RETURN(&ompi_pml_ucx.persistent_reqs, &preq->ompi.super);

0 commit comments

Comments
 (0)