Closed 0tkl closed 11 months ago
Changes:
addlinkvertex()
, when realloc failed and pointer pointed to NULL, free the old array.xstrcpy()
.ENR_getNetSize()
, use the way that is consistent with other functions in epanet_output.c
to handle allocation failures.OK, I reverted it.
Thank you @0tkl for your contribution.
We're going to use EPANET in some serious scenarios which requires passing the static analyzer.
We fixed all problems reported in gcc static analyzer
-fanalyzer
, and all but problems in "Unused code" category in Clang analyzerscan-build
.