This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
You are correct and thank you for finding this. The fix is to add "free(nc4_info)" at the end of the nc4_create_file code. A comparison with nc4_open_file shows how this should look. See Jira issue NCf-248 https://bugtracking.unidata.ucar.edu/browse/NCF-248 =Dennis Heimbigner Unidata Ticket Details =================== Ticket ID: VLJ-435861 Department: Support netCDF Priority: Normal Status: Closed