Skip to content

Commit e231408

Browse files
authored
Merge pull request #12774 from wenduwan/part_persist_mem_leak
mca/part: fix datatype memory leak
2 parents afa9d65 + 546e60e commit e231408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mca/part/persist/part_persist_sendreq.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ do { \
8383
#define MCA_PART_PERSIST_PSEND_REQUEST_RETURN(sendreq) \
8484
{ \
8585
/* Let the base handle the reference counts */ \
86-
OMPI_DATATYPE_RETAIN(sendreq->req_datatype); \
86+
OMPI_DATATYPE_RELEASE(sendreq->req_datatype); \
8787
OBJ_RELEASE(sendreq->req_comm); \
8888
OMPI_REQUEST_FINI(&sendreq->req_ompi); \
8989
opal_convertor_cleanup( &(sendreq->req_convertor) ); \

0 commit comments

Comments
 (0)