From 546e60e58dec2280526ad08c5bdec5073b787fc7 Mon Sep 17 00:00:00 2001 From: Wenduo Wang Date: Wed, 21 Aug 2024 21:22:46 +0000 Subject: [PATCH] mca/part: fix datatype memory leak Should decrement object refcount instead of increment Signed-off-by: Wenduo Wang --- ompi/mca/part/persist/part_persist_sendreq.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ompi/mca/part/persist/part_persist_sendreq.h b/ompi/mca/part/persist/part_persist_sendreq.h index 9a7be5af8ac..b3bf08386ce 100644 --- a/ompi/mca/part/persist/part_persist_sendreq.h +++ b/ompi/mca/part/persist/part_persist_sendreq.h @@ -83,7 +83,7 @@ do { \ #define MCA_PART_PERSIST_PSEND_REQUEST_RETURN(sendreq) \ { \ /* Let the base handle the reference counts */ \ - OMPI_DATATYPE_RETAIN(sendreq->req_datatype); \ + OMPI_DATATYPE_RELEASE(sendreq->req_datatype); \ OBJ_RELEASE(sendreq->req_comm); \ OMPI_REQUEST_FINI(&sendreq->req_ompi); \ opal_convertor_cleanup( &(sendreq->req_convertor) ); \