mirror of
https://github.com/TREX-CoE/trexio.git
synced 2025-01-08 20:33:36 +01:00
fix error handling in write_group_dset
This commit is contained in:
parent
52e636f610
commit
4fceb6624d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user