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

Commit e6bf5f4

Browse files
committed
io/ompio: increase the ref counter on datatypes that are not duplicated.
1 parent fb71b10 commit e6bf5f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ompi/mca/io/ompio/io_ompio_file_set_view.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ static int datatype_duplicate (ompi_datatype_t *oldtype, ompi_datatype_t **newt
4444
{
4545
ompi_datatype_t *type;
4646
if( ompi_datatype_is_predefined(oldtype) ) {
47+
OBJ_RETAIN(oldtype);
4748
*newtype = oldtype;
4849
return OMPI_SUCCESS;
4950
}

0 commit comments

Comments
 (0)