From 2e1b1d34c68d9bf3ee9067525d68247c2a08720e Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Thu, 2 Jun 2016 11:52:43 +0900 Subject: [PATCH] Safety first ! --- ompi/mca/pml/ob1/pml_ob1_sendreq.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ompi/mca/pml/ob1/pml_ob1_sendreq.h b/ompi/mca/pml/ob1/pml_ob1_sendreq.h index d9fa0c852f..56924b24d9 100644 --- a/ompi/mca/pml/ob1/pml_ob1_sendreq.h +++ b/ompi/mca/pml/ob1/pml_ob1_sendreq.h @@ -226,7 +226,7 @@ static inline void mca_pml_ob1_send_request_fini (mca_pml_ob1_send_request_t *se } /* - * Release resources associated with a request + * Release resources associated with a request and return the request. */ #define MCA_PML_OB1_SEND_REQUEST_RETURN(sendreq) \ @@ -234,6 +234,7 @@ static inline void mca_pml_ob1_send_request_fini (mca_pml_ob1_send_request_t *se mca_pml_ob1_send_request_fini (sendreq); \ opal_free_list_return ( &mca_pml_base_send_requests, \ (opal_free_list_item_t*)sendreq); \ + sendreq = NULL; /* for safety */ \ } while(0)