Skip to content

Commit 8b1961f

Browse files
committed
fortran: some pr feedback
Signed-off-by: Howard Pritchard <[email protected]>
1 parent 0bbe975 commit 8b1961f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ompi/mpi/fortran/use-mpi-f08/base/bigcount.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
do { \
2929
if ((array) != (tmp_array) && NULL != (tmp_array)) { \
3030
free(tmp_array); \
31+
tmp_array = NULL; \
3132
} \
3233
} while (0)
3334

ompi/mpi/fortran/use-mpi-f08/base/ts.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ int ompi_ts_create_datatype(CFI_cdesc_t *cdesc, int oldcount, MPI_Datatype oldty
8080
*newtype = types[i];
8181
MPI_Type_commit(newtype);
8282
last = i - 1; /* To avoid freeing newtype */
83+
mpi_errno = MPI_SUCCESS;
8384
} else {
8485
/* If # of elements given by "oldcount oldtype" is bigger than
8586
* what cdesc describles, then we will reach here.

0 commit comments

Comments
 (0)