Potential resource leaks
Brought to you by:
tringali
I just experimented with cppcheck (http://sourceforge.net/apps/mediawiki/cppcheck/index.php) and used the NEdit code base as example code.
It found two resource leaks.
I've attached a proposed patch.
cppcheck also reported a resource leak in util/printUtils.c but as far as I can see, that was a false positive.
Pathc file for resource leaks
Looks reasonable. Thanks.