herr_t H5free_memory(void *buf)
H5free_memory
frees memory that has been allocated
by the caller with
H5alloc_memory
or by the HDF5 Library on behalf of the caller.
H5Tget_member_name
provides an example of memory allocation on behalf of the caller:
The function returns a buffer containing the name of a compound datatype
member. It is the caller’s responsibility to eventually free
that buffer with H5free_memory
.
Only use this function to free memory allocated by the HDF5 Library. It will generally not be safe to use this function to free memory allocated by any other means.
Even when using this function, it is still best to ensure that all components of a C application are built with the same version of Visual Studio and build (debug or release) and thus linked against the same CRT.
void *mem |
IN: Buffer to be freed. Can be NULL . |
|