Skip to content

Commit 6b90b03

Browse files
committed
orted/pmix: plug a memoy leak in pmix_server_fencenb_fn()
Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent 7fe6840 commit 6b90b03

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

orte/orted/pmix/pmix_server_fence.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Copyright (c) 2013-2016 Intel, Inc. All rights reserved.
1717
* Copyright (c) 2014 Mellanox Technologies, Inc.
1818
* All rights reserved.
19-
* Copyright (c) 2014 Research Organization for Information Science
19+
* Copyright (c) 2014-2017 Research Organization for Information Science
2020
* and Technology (RIST). All rights reserved.
2121
* $COPYRIGHT$
2222
*
@@ -116,8 +116,10 @@ int pmix_server_fencenb_fn(opal_list_t *procs, opal_list_t *info,
116116
/* pass along any data that was collected locally */
117117
if (ORTE_SUCCESS != (rc = orte_grpcomm.allgather(cd->sig, buf, pmix_server_release, cd))) {
118118
ORTE_ERROR_LOG(rc);
119+
OBJ_RELEASE(buf);
119120
return rc;
120121
}
122+
OBJ_RELEASE(buf);
121123
return ORTE_SUCCESS;
122124
}
123125

0 commit comments

Comments
 (0)