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.
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.