Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#661 Potential resource leaks

development
open
nobody
None
5
2010-01-27
2010-01-27
Arne F�rlie
No

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.

Discussion

  • Arne F�rlie
    Arne F�rlie
    2010-01-27

    Pathc file for resource leaks

     
    Attachments
  • Bert Wesarg
    Bert Wesarg
    2010-01-27

    Looks reasonable. Thanks.