From 3203f47831af85905f9694ef2e347ef53bd3efe8 Mon Sep 17 00:00:00 2001 From: Howard Pritchard Date: Tue, 1 Apr 2025 10:57:22 -0600 Subject: [PATCH] OSC/UCX: plug a memory leak found by valgrind related to #13171 Signed-off-by: Howard Pritchard --- ompi/mca/osc/ucx/osc_ucx_component.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ompi/mca/osc/ucx/osc_ucx_component.c b/ompi/mca/osc/ucx/osc_ucx_component.c index 409635c1c86..91886233fd6 100644 --- a/ompi/mca/osc/ucx/osc_ucx_component.c +++ b/ompi/mca/osc/ucx/osc_ucx_component.c @@ -1,7 +1,7 @@ /* * Copyright (C) Mellanox Technologies Ltd. 2001-2017. ALL RIGHTS RESERVED. * Copyright (c) 2018 Amazon.com, Inc. or its affiliates. All Rights reserved. - * Copyright (c) 2021 Triad National Security, LLC. All rights + * Copyright (c) 2021-2025 Triad National Security, LLC. All rights * reserved. * * Copyright (c) 2022 IBM Corporation. All rights reserved. @@ -352,6 +352,8 @@ static int component_finalize(void) { opal_common_ucx_mca_deregister(); if (mca_osc_ucx_component.env_initialized) { opal_common_ucx_wpool_finalize(mca_osc_ucx_component.wpool); + OBJ_DESTRUCT(&mca_osc_ucx_component.accumulate_requests); + OBJ_DESTRUCT(&mca_osc_ucx_component.requests); } opal_common_ucx_wpool_free(mca_osc_ucx_component.wpool);