Skip to content

Commit dfc4618

Browse files
committed
Add missing OBJ_RELEASE to ompi_attr_copy_all
Signed-off-by: Joseph Schuchart <[email protected]>
1 parent 283cfbf commit dfc4618

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ompi/attribute/attribute.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,7 @@ int ompi_attr_copy_all(ompi_attribute_type_t type, void *old_object,
979979
/* Did the callback return non-MPI_SUCCESS? */
980980
if (0 != err) {
981981
ret = err;
982+
OBJ_RELEASE(new_attr);
982983
goto out;
983984
}
984985

0 commit comments

Comments
 (0)