Menu

#661 Potential resource leaks

development
closed-accepted
None
5
2017-02-04
2010-01-27
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

     
  • Bert Wesarg

    Bert Wesarg - 2010-01-27

    Looks reasonable. Thanks.

     
  • Scott Tringali

    Scott Tringali - 2017-02-04
    • status: open --> closed-accepted
    • assigned_to: Scott Tringali
     

Log in to post a comment.

MongoDB Logo MongoDB