1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-10-02 06:21:05 +02:00

fix error handling in write_group_dset

This commit is contained in:
q-posev 2021-06-03 17:33:31 +02:00
parent 52e636f610
commit 4fceb6624d

View File

@ -498,6 +498,10 @@ trexio_hdf5_read_$group_dset$ (trexio_t* const file, char* const $group_dset$, c
for (uint64_t i=0; i<dims[0]; i++){
if (strlen(rdata[i]) > max_str_len) {
// this function is introduced in HDF5 v.1.12.0
//status = H5Treclaim (memtype, dspace, H5P_DEFAULT, rdata);
// this function is deprecated but used in v.<1.12.0
status = H5Dvlen_reclaim (memtype, dspace, H5P_DEFAULT, rdata);
FREE(rdata);
H5Dclose(dset_id);
H5Sclose(dspace);