Skip to content

Commit 98a37c9

Browse files
committed
coll/basic CID 1516465: remove bad free
tmpbuf2 is never assigned a pointer value that can be freed. Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
1 parent 8113e7c commit 98a37c9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ompi/mca/coll/basic/coll_basic_reduce_scatter_block.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* Copyright (c) 2014-2018 Research Organization for Information Science
1616
* and Technology (RIST). All rights reserved.
1717
* Copyright (c) 2022 IBM Corporation. All rights reserved.
18+
* Copyright (c) 2022 Cisco Systems, Inc. All rights reserved.
1819
* $COPYRIGHT$
1920
*
2021
* Additional copyrights may follow
@@ -174,9 +175,5 @@ mca_coll_basic_reduce_scatter_block_inter(const void *sbuf, void *rbuf, int rcou
174175
free(tmpbuf);
175176
}
176177

177-
if (NULL != tmpbuf2) {
178-
free(tmpbuf2);
179-
}
180-
181178
return err;
182179
}

0 commit comments

Comments
 (0)