summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@lbl.gov>2020-08-20 23:22:39 (GMT)
committerQuincey Koziol <koziol@lbl.gov>2020-08-20 23:22:39 (GMT)
commitfa0d395370daa7337ed2676d30198937145ad6e9 (patch)
treec93d842f3c0665ea5786ddd2a43fbb4af5eff4b0
parentd67de87ecd15b531718b4e5642b264a5f9b6bbc4 (diff)
downloadhdf5-fa0d395370daa7337ed2676d30198937145ad6e9.zip
hdf5-fa0d395370daa7337ed2676d30198937145ad6e9.tar.gz
hdf5-fa0d395370daa7337ed2676d30198937145ad6e9.tar.bz2
Don't free builtin MPI_BYTE MPI type
-rw-r--r--src/H5Dchunk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Dchunk.c b/src/H5Dchunk.c
index 52a921f..b57a608 100644
--- a/src/H5Dchunk.c
+++ b/src/H5Dchunk.c
@@ -5082,10 +5082,10 @@ done:
HDONE_ERROR(H5E_DATASET, H5E_CANTSET, FAIL, "can't set transfer mode")
/* free things */
- if(MPI_DATATYPE_NULL != file_type)
+ if(MPI_DATATYPE_NULL != file_type && MPI_BYTE != file_type)
if(MPI_SUCCESS != (mpi_code = MPI_Type_free(&file_type)))
HMPI_DONE_ERROR(FAIL, "MPI_Type_free failed", mpi_code)
- if(MPI_DATATYPE_NULL != mem_type)
+ if(MPI_DATATYPE_NULL != mem_type && MPI_BYTE != mem_type)
if(MPI_SUCCESS != (mpi_code = MPI_Type_free(&mem_type)))
HMPI_DONE_ERROR(FAIL, "MPI_Type_free failed", mpi_code)
H5MM_xfree(chunk_disp_array);