Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit 779c0d2

Browse files
committed
coll/base: fix memory free in ompi_coll_base_allreduce_intra_recursivedoubling err handler
Fix CID 1362630 Fixes open-mpi/ompi@0e39319 (back-ported from commit open-mpi/ompi@80e362d)
1 parent 6a9cadf commit 779c0d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ompi/mca/coll/base/coll_base_allreduce.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ ompi_coll_base_allreduce_intra_recursivedoubling(const void *sbuf, void *rbuf,
270270
error_hndl:
271271
OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tRank %d Error occurred %d\n",
272272
__FILE__, line, rank, ret));
273-
if (NULL != inplacebuf) free(inplacebuf);
273+
(void)line; // silence compiler warning
274+
if (NULL != inplacebuf_free) free(inplacebuf_free);
274275
return ret;
275276
}
276277

0 commit comments

Comments
 (0)