Skip to content

Commit e4798fb

Browse files
authored
Merge pull request #3099 from artpol84/fix_ucx_req/v2.x
ompi/pml/ucx: Fix uninitialized UCX request field.
2 parents 083a73b + b9d8514 commit e4798fb

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
@@ -165,7 +165,8 @@ static int mca_pml_ucx_persistent_request_free(ompi_request_t **rptr)
165165
mca_pml_ucx_persistent_request_detach(preq, tmp_req);
166166
ucp_request_free(tmp_req);
167167
}
168-
if (MCA_PML_BASE_SEND_BUFFERED == preq->send.mode) {
168+
if ((preq->flags & MCA_PML_UCX_REQUEST_FLAG_SEND) &&
169+
(MCA_PML_BASE_SEND_BUFFERED == preq->send.mode)) {
169170
OBJ_RELEASE(preq->ompi_datatype);
170171
}
171172
PML_UCX_FREELIST_RETURN(&ompi_pml_ucx.persistent_reqs, &preq->ompi.super);

0 commit comments

Comments
 (0)