diff options
author | Quincey Koziol <koziol@lbl.gov> | 2020-08-20 23:22:39 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@lbl.gov> | 2020-08-21 21:18:40 (GMT) |
commit | 5a23ba8b59a2d91754dd8334aba12c860378c20a (patch) | |
tree | 2d3e33f0685f5cc00fcaa893f78ba5b124a8aead | |
parent | be11bcf2ae80906fbd8aed55b7c3cfed821f6a43 (diff) | |
download | hdf5-5a23ba8b59a2d91754dd8334aba12c860378c20a.zip hdf5-5a23ba8b59a2d91754dd8334aba12c860378c20a.tar.gz hdf5-5a23ba8b59a2d91754dd8334aba12c860378c20a.tar.bz2 |
Don't free builtin MPI_BYTE MPI type
-rw-r--r-- | src/H5Dchunk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Dchunk.c b/src/H5Dchunk.c index ccffc3e..9543654 100644 --- a/src/H5Dchunk.c +++ b/src/H5Dchunk.c @@ -5085,10 +5085,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); |