From 189da7fdabbfbe069480b6fef15aa97500acaf51 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Fri, 6 Jan 2017 13:18:55 +0900 Subject: [PATCH] pmix2x: plug a memory leak in _event_hdlr() Signed-off-by: Gilles Gouaillardet --- opal/mca/pmix/pmix2x/pmix2x.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opal/mca/pmix/pmix2x/pmix2x.c b/opal/mca/pmix/pmix2x/pmix2x.c index 6a08416d7c..10f6a5e772 100644 --- a/opal/mca/pmix/pmix2x/pmix2x.c +++ b/opal/mca/pmix/pmix2x/pmix2x.c @@ -1,7 +1,7 @@ /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * Copyright (c) 2014-2017 Intel, Inc. All rights reserved. - * Copyright (c) 2014-2016 Research Organization for Information Science + * Copyright (c) 2014-2017 Research Organization for Information Science * and Technology (RIST). All rights reserved. * Copyright (c) 2014-2015 Mellanox Technologies, Inc. * All rights reserved. @@ -223,6 +223,8 @@ static void _event_hdlr(int sd, short args, void *cbdata) if (NULL != cd->pmixcbfunc) { cd->pmixcbfunc(PMIX_SUCCESS, NULL, 0, NULL, NULL, cd->cbdata); } + OPAL_LIST_RELEASE(cd->info); + OBJ_RELEASE(cd); return; }