Skip to content

Commit 4f944b5

Browse files
committed
op/base: plug a memory leak
fix a typo that indirectly caused a memory leak Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
1 parent 5e0be56 commit 4f944b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ompi/mca/op/base/op_base_op_select.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* rights reserved.
1515
* Copyright (c) 2008 Sun Microsystems, Inc. All rights reserved.
1616
* Copyright (c) 2008-2015 Cisco Systems, Inc. All rights reserved.
17-
* Copyright (c) 2020 Research Organization for Information Science
17+
* Copyright (c) 2020-2024 Research Organization for Information Science
1818
* and Technology (RIST). All rights reserved.
1919
* $COPYRIGHT$
2020
*
@@ -163,7 +163,7 @@ int ompi_op_base_op_select(ompi_op_t *op)
163163

164164
/* 3-buffer variants */
165165
if (NULL != avail->ao_module->opm_3buff_fns[i]) {
166-
OBJ_RELEASE(op->o_func.intrinsic.modules[i]);
166+
OBJ_RELEASE(op->o_3buff_intrinsic.modules[i]);
167167
op->o_3buff_intrinsic.fns[i] =
168168
avail->ao_module->opm_3buff_fns[i];
169169
op->o_3buff_intrinsic.modules[i] = avail->ao_module;

0 commit comments

Comments
 (0)