From d75e64774de55150a8d6e51d9b31fa0d3f0e0e8f Mon Sep 17 00:00:00 2001 From: Howard Pritchard Date: Mon, 18 Aug 2025 09:06:23 -0600 Subject: [PATCH] CID 1645395 fix resource leak Signed-off-by: Howard Pritchard --- ompi/mca/common/ompio/common_ompio_file_write.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ompi/mca/common/ompio/common_ompio_file_write.c b/ompi/mca/common/ompio/common_ompio_file_write.c index b5d3900e7a3..7db6071aa93 100644 --- a/ompi/mca/common/ompio/common_ompio_file_write.c +++ b/ompi/mca/common/ompio/common_ompio_file_write.c @@ -13,7 +13,7 @@ * Copyright (c) 2015-2018 Research Organization for Information Science * and Technology (RIST). All rights reserved. * Copyright (c) 2022-2024 Advanced Micro Devices, Inc. All rights reserved. - * Copyright (c) 2024 Triad National Security, LLC. All rights + * Copyright (c) 2024-2025 Triad National Security, LLC. All rights * reserved. * $COPYRIGHT$ * @@ -187,6 +187,7 @@ int mca_common_ompio_file_write_pipelined (ompio_file_t *fh, tbuf2 = mca_common_ompio_alloc_buf (fh, bytes_per_cycle); if (NULL == tbuf2) { opal_output(1, "common_ompio: error allocating memory\n"); + opal_convertor_cleanup (&convertor); return OMPI_ERR_OUT_OF_RESOURCE; } writebuf = tbuf2;