From c7d9e62d477fbb21e773e5d01ecbf0553d4c27fc Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Thu, 24 Nov 2016 13:21:25 +0900 Subject: [PATCH] rml/base: plug a memory leak add a destructor to orte_rml_send_request_t in order to plug a memory leak Signed-off-by: Gilles Gouaillardet --- orte/mca/rml/base/rml_base_frame.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/orte/mca/rml/base/rml_base_frame.c b/orte/mca/rml/base/rml_base_frame.c index 3825fce537..d132115032 100644 --- a/orte/mca/rml/base/rml_base_frame.c +++ b/orte/mca/rml/base/rml_base_frame.c @@ -6,7 +6,7 @@ * reserved. * Copyright (c) 2013 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2014-2016 Intel Corporation. All rights reserved. - * Copyright (c) 2015 Research Organization for Information Science + * Copyright (c) 2015-2017 Research Organization for Information Science * and Technology (RIST). All rights reserved. * $COPYRIGHT$ * @@ -289,9 +289,13 @@ static void send_req_cons(orte_rml_send_request_t *ptr) { OBJ_CONSTRUCT(&ptr->send, orte_rml_send_t); } +static void send_req_des(orte_rml_send_request_t *ptr) +{ + OBJ_DESTRUCT(&ptr->send); +} OBJ_CLASS_INSTANCE(orte_rml_send_request_t, opal_object_t, - send_req_cons, NULL); + send_req_cons, send_req_des); static void recv_cons(orte_rml_recv_t *ptr) {