Unidata / netcdf-cxx4

Official GitHub repository for netCDF-C++ libraries and utilities.
Other
124 stars 49 forks source link

ncGroup.cpp:107: bad delete ? #98

Open dcb314 opened 3 years ago

dcb314 commented 3 years ago

../../cxx4/ncGroup.cpp:107:5: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'? [-Wmismatched-new-delete] delete charName; ^ [] ../../cxx4/ncGroup.cpp:104:21: note: allocated with 'new[]' here char* charName= new char[lenp+1]; ^