Skip to content

Commit 9c4107b

Browse files
committed
OSC/UCX: plug a memory leak found by valgrind
related to #13171 Signed-off-by: Howard Pritchard <[email protected]>
1 parent 96864aa commit 9c4107b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ompi/mca/osc/ucx/osc_ucx_component.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Copyright (C) Mellanox Technologies Ltd. 2001-2017. ALL RIGHTS RESERVED.
33
* Copyright (c) 2018 Amazon.com, Inc. or its affiliates. All Rights reserved.
4-
* Copyright (c) 2021 Triad National Security, LLC. All rights
4+
* Copyright (c) 2021-2025 Triad National Security, LLC. All rights
55
* reserved.
66
*
77
* Copyright (c) 2022 IBM Corporation. All rights reserved.
@@ -355,6 +355,11 @@ static int component_finalize(void) {
355355
}
356356
opal_common_ucx_wpool_free(mca_osc_ucx_component.wpool);
357357

358+
if (mca_osc_ucx_component.env_initialized) {
359+
OBJ_DESTRUCT(&mca_osc_ucx_component.accumulate_requests);
360+
OBJ_DESTRUCT(&mca_osc_ucx_component.requests);
361+
}
362+
358363
assert(opal_common_ucx_ep_counts == 0);
359364
assert(opal_common_ucx_unpacked_rkey_counts == 0);
360365
return OMPI_SUCCESS;

0 commit comments

Comments
 (0)