Skip to content

Commit 189da7f

Browse files
committed
pmix2x: plug a memory leak in _event_hdlr()
Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent acbc32d commit 189da7f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

opal/mca/pmix/pmix2x/pmix2x.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
33
* Copyright (c) 2014-2017 Intel, Inc. All rights reserved.
4-
* Copyright (c) 2014-2016 Research Organization for Information Science
4+
* Copyright (c) 2014-2017 Research Organization for Information Science
55
* and Technology (RIST). All rights reserved.
66
* Copyright (c) 2014-2015 Mellanox Technologies, Inc.
77
* All rights reserved.
@@ -223,6 +223,8 @@ static void _event_hdlr(int sd, short args, void *cbdata)
223223
if (NULL != cd->pmixcbfunc) {
224224
cd->pmixcbfunc(PMIX_SUCCESS, NULL, 0, NULL, NULL, cd->cbdata);
225225
}
226+
OPAL_LIST_RELEASE(cd->info);
227+
OBJ_RELEASE(cd);
226228
return;
227229
}
228230

0 commit comments

Comments
 (0)