Skip to content

Commit 1aa6e74

Browse files
author
Sergey Oblomov
committed
PML/UCX/WPOOL: fixe potential leak in error processing
- there was potential leak in error handling, fixed Signed-off-by: Sergey Oblomov <[email protected]>
1 parent a6e00e3 commit 1aa6e74

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

opal/mca/common/ucx/common_ucx_wpool.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ opal_common_ucx_wpool_init(opal_common_ucx_wpool_t *wpool,
219219
OBJ_RELEASE(wpool->dflt_winfo);
220220
wpool->dflt_winfo = NULL;
221221
err_worker_create:
222+
OBJ_DESTRUCT(&wpool->idle_workers);
223+
OBJ_DESTRUCT(&wpool->active_workers);
222224
ucp_cleanup(wpool->ucp_ctx);
223225
err_ucp_init:
224226
return rc;

0 commit comments

Comments
 (0)