Skip to content

Commit 9a60f5b

Browse files
committed
Add missing free calls to ompi_coll_base_reduce_intra_basic_linear
Signed-off-by: Joseph Schuchart <[email protected]>
1 parent 8e24c0d commit 9a60f5b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ompi/mca/coll/base/coll_base_reduce.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,9 @@ ompi_coll_base_reduce_intra_basic_linear(const void *sbuf, void *rbuf, int count
688688
if (NULL != free_buffer) {
689689
free(free_buffer);
690690
}
691+
if (NULL != inplace_temp_free) {
692+
free(inplace_temp_free);
693+
}
691694
return err;
692695
}
693696

@@ -704,6 +707,9 @@ ompi_coll_base_reduce_intra_basic_linear(const void *sbuf, void *rbuf, int count
704707
if (NULL != free_buffer) {
705708
free(free_buffer);
706709
}
710+
if (NULL != inplace_temp_free) {
711+
free(inplace_temp_free);
712+
}
707713
return err;
708714
}
709715

0 commit comments

Comments
 (0)