Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean up freeing of libsrc4 metadata memory in HDF5 and HDF4 #1440

Merged

Conversation

edhartnett
Copy link
Contributor

@edhartnett edhartnett commented Jul 16, 2019

Fixes #1433
Part of #1426

The current code to close a file needs a little cleanup for PIO use of the UDF feature.

In this PR I add function nc4_nc4f_list_del() to go with nc4_nc4f_list_add(). This new function cleans up the memory that was allocated by libsrc4 code. This allows some duplicate code to be removed from hdf4file.c and hdf5file.c, as well as making it easier for layers like PIO to use the libsrc4 metadata handling code.

This change is required for the netCDF/PIO integration. See NCAR/ParallelIO#1566.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

unneeded prototype in nc4internal.h for nc4_file_list_del()
2 participants