From 103300259557479a416d47ded6dd875b75378ecc Mon Sep 17 00:00:00 2001 From: Gleb Natapov Date: Mon, 12 Feb 2007 09:47:51 +0000 Subject: [PATCH] Fix memory leak. Free allocated descriptor if operation cannot proceed. This commit was SVN r13610. --- ompi/mca/pml/ob1/pml_ob1_sendreq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ompi/mca/pml/ob1/pml_ob1_sendreq.c b/ompi/mca/pml/ob1/pml_ob1_sendreq.c index 7fd3b1f913..3fa8f19f1f 100644 --- a/ompi/mca/pml/ob1/pml_ob1_sendreq.c +++ b/ompi/mca/pml/ob1/pml_ob1_sendreq.c @@ -674,6 +674,7 @@ int mca_pml_ob1_send_request_start_rdma( if(NULL == des) { ompi_convertor_set_position(&sendreq->req_send.req_convertor, &old_position); + mca_bml_base_free(bml_btl, src); return OMPI_ERR_OUT_OF_RESOURCE; } segment = des->des_src;