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