#71 fixed memory leaks

closed-fixed
nobody
None
5
2009-12-09
2009-12-08
orbitcowboy
No

during a check of plplot sources with the static code analysis tool cppcheck, the tool discovered a few memory leaks.
Cppcheck printed the following messages:

[../lib/nn/nncommon.c:139]: (Error) Memory leak: sumx
[../lib/nn/nncommon.c:139]: (Error) Memory leak: sumy
[../lib/nn/nncommon.c:139]: (Error) Memory leak: sumz
[../lib/nn/nncommon.c:139]: (Error) Memory leak: count

Please see the attached patch that fixes the issue.

Best regards

Ettl Martin

Discussion

  • orbitcowboy

    orbitcowboy - 2009-12-08

    proper fix

     
  • Andrew Ross

    Andrew Ross - 2009-12-09
    • status: open --> closed-fixed
     
  • Andrew Ross

    Andrew Ross - 2009-12-09

    Thanks. Patch applied.

     

Log in to post a comment.