Skip to content

Commit 80e362d

Browse files
committed
coll/base: fix memory free in ompi_coll_base_allreduce_intra_recursivedoubling err handler
Fix CID 1362630 Fixes 0e39319
1 parent 1f651d1 commit 80e362d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mca/coll/base/coll_base_allreduce.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ ompi_coll_base_allreduce_intra_recursivedoubling(const void *sbuf, void *rbuf,
271271
OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tRank %d Error occurred %d\n",
272272
__FILE__, line, rank, ret));
273273
(void)line; // silence compiler warning
274-
if (NULL != inplacebuf) free(inplacebuf);
274+
if (NULL != inplacebuf_free) free(inplacebuf_free);
275275
return ret;
276276
}
277277

0 commit comments

Comments
 (0)