Skip to content

Commit f281a4e

Browse files
committed
CID 1659063 - fix potential memory leaks
Signed-off-by: Howard Pritchard <[email protected]>
1 parent 9977df7 commit f281a4e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ompi/mca/coll/han/coll_han_alltoall.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Copyright (c) 2025 Barcelona Supercomputing Center (BSC-CNS). All Rights Reserved.
5+
* Copyright (c) 2025 Triad National Security, LLC. All rights
56
*
67
* Additional copyrights may follow
78
*
@@ -136,6 +137,7 @@ int mca_coll_han_alltoall_using_smsc(
136137
"han cannot handle alltoall with this communicator. Fall back on another component\n");
137138
/* HAN cannot work with this communicator so fallback on all collectives */
138139
HAN_LOAD_FALLBACK_COLLECTIVES(comm, han_module);
140+
OBJ_DESTRUCT(&convertor);
139141
return han_module->previous_alltoall(sbuf, scount, sdtype, rbuf, rcount, rdtype,
140142
comm, han_module->previous_alltoall_module);
141143
}
@@ -151,6 +153,7 @@ int mca_coll_han_alltoall_using_smsc(
151153
* future calls will then be automatically redirected.
152154
*/
153155
HAN_UNINSTALL_COLL_API(comm, han_module, alltoall);
156+
OBJ_DESTRUCT(&convertor);
154157
return han_module->previous_alltoall(sbuf, scount, sdtype, rbuf, rcount, rdtype,
155158
comm, han_module->previous_alltoall_module);
156159
}

0 commit comments

Comments
 (0)