Skip to content

Commit 159856f

Browse files
authored
Merge pull request #8219 from hoopoepg/topic/fixed-coverity-warning-wpool
PML/UCX/WPOOL: fixed coverity issue
2 parents 38d2f12 + 1aa6e74 commit 159856f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

opal/mca/common/ucx/common_ucx_wpool.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,12 @@ opal_common_ucx_wpool_init(opal_common_ucx_wpool_t *wpool,
215215
err_wpool_add:
216216
free(wpool->recv_waddr);
217217
err_get_addr:
218-
if (NULL != wpool) {
219-
OBJ_RELEASE(winfo);
220-
OBJ_RELEASE(wpool->dflt_winfo);
221-
wpool->dflt_winfo = NULL;
222-
}
218+
OBJ_RELEASE(winfo);
219+
OBJ_RELEASE(wpool->dflt_winfo);
220+
wpool->dflt_winfo = NULL;
223221
err_worker_create:
222+
OBJ_DESTRUCT(&wpool->idle_workers);
223+
OBJ_DESTRUCT(&wpool->active_workers);
224224
ucp_cleanup(wpool->ucp_ctx);
225225
err_ucp_init:
226226
return rc;

0 commit comments

Comments
 (0)