All,
Below given are two instances of allocating memory for variable length
data types
One for unsigned int
data.ref.p = (unsigned int*)malloc(5*(sizeof(unsigned int)));
One for dataset region references
Data.pref.p=(hdset_reg_ref_t*)malloc(10*sizeof(hdset_reg_ref_t));
In both these cases , how should the memory be freed .i.e. should I
explicitly call free ? Or use the H5Dvlen_reclaim or is it taken care by
hdf5 internally.
Regards
Ramakrishnan