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.
Hello Clint, Thanks for the report; I'll take a look and clear this up! -Ward > Hi, > > NC4_put_propattr in nc4info.c appears to have a memory leak. > > NC4_buildpropinfo() is called, and it did a malloc(). > https://github.com/Unidata/netcdf-c/blob/master/libsrc4/nc4info.c#L158 > > Only in the case of failure is that memory cleaned up here. > https://github.com/Unidata/netcdf-c/blob/master/libsrc4/nc4info.c#L173 > > Perhaps the code should be changed to remove the check on ncstat, > and go ahead with the cleanup regardless. > > Thanks, > Clint > > Ticket Details =================== Ticket ID: WQF-989775 Department: Support netCDF Priority: Normal Status: Closed =================== NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.