netcdf-c/plugins
Dennis Heimbigner d07c05b58f Fix memory problems when using HDF5 version 1.10.x and later.
re: issue https://github.com/Unidata/netcdf-c/issues/1156

Starting with HDF5 version 1.10.x, the plugin code MUST be
careful when using the standard *malloc()*, *realloc()*, and
*free()* function.

In the event that the code is allocating, reallocating, or
free'ing memory that either came from -- or will be exported to --
the calling HDF5 library, then one MUST use the corresponding
HDF5 functions *H5allocate_memory()*, *H5resize_memory()*,
*H5free_memory()* [5] to avoid memory failures.

Additionally, if your filter code leaks memory, then the HDF5 library
generates a failure something like this.
````
H5MM.c:232: H5MM_final_sanity_check: Assertion `0 == H5MM_curr_alloc_bytes_s' failed.
````

This PR modifies the code in the plugins directory to
conform to these new requirements.

This raises a question about the libhdf5 code where this
same problem may occur. We need to scan especially nc4hdf.c
to look for this problem.
2018-10-04 11:37:21 -06:00
..
blocksort.c re: gh issue https://github.com/Unidata/netcdf-c/issues/911 2018-04-21 20:10:47 -06:00
bzlib_private.h re: gh issue https://github.com/Unidata/netcdf-c/issues/911 2018-04-21 20:10:47 -06:00
bzlib.c re: gh issue https://github.com/Unidata/netcdf-c/issues/911 2018-04-21 20:10:47 -06:00
bzlib.h re: gh issue https://github.com/Unidata/netcdf-c/issues/911 2018-04-21 20:10:47 -06:00
CMakeLists.txt re: gh issue https://github.com/Unidata/netcdf-c/issues/911 2018-04-21 20:10:47 -06:00
compress.c re: gh issue https://github.com/Unidata/netcdf-c/issues/911 2018-04-21 20:10:47 -06:00
crctable.c re: gh issue https://github.com/Unidata/netcdf-c/issues/911 2018-04-21 20:10:47 -06:00
decompress.c re: gh issue https://github.com/Unidata/netcdf-c/issues/911 2018-04-21 20:10:47 -06:00
h5bzip2.h re: gh issue https://github.com/Unidata/netcdf-c/issues/911 2018-04-21 20:10:47 -06:00
h5misc.h re: gh issue https://github.com/Unidata/netcdf-c/issues/911 2018-04-21 20:10:47 -06:00
H5Zbzip2.c Fix memory problems when using HDF5 version 1.10.x and later. 2018-10-04 11:37:21 -06:00
H5Zmisc.c Fix memory problems when using HDF5 version 1.10.x and later. 2018-10-04 11:37:21 -06:00
H5Ztemplate.c Fix memory problems when using HDF5 version 1.10.x and later. 2018-10-04 11:37:21 -06:00
huffman.c re: gh issue https://github.com/Unidata/netcdf-c/issues/911 2018-04-21 20:10:47 -06:00
Makefile.am re: gh issue https://github.com/Unidata/netcdf-c/issues/911 2018-04-21 20:10:47 -06:00
randtable.c re: gh issue https://github.com/Unidata/netcdf-c/issues/911 2018-04-21 20:10:47 -06:00