Skip to content

Commit 546e60e

Browse files
committed
mca/part: fix datatype memory leak
Should decrement object refcount instead of increment Signed-off-by: Wenduo Wang <[email protected]>
1 parent afa9d65 commit 546e60e

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)