#76 fixed missmatching allocation/deallocation a few times

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

during a check with the static code analysis tool cppcheck
(https://sourceforge.net/projects/cppcheck/) the tool discovered
a missmatch in allocation/deallocation of memory at several lines of code.

It printed the following output:

[../bindings/c++/plstream.cc:1227]: (Error) Mismatching allocation and deallocation: loc_draw
[../bindings/c++/plstream.cc:1244]: (Error) Mismatching allocation and deallocation: loc_draw
[../bindings/c++/plstream.cc:1399]: (Error) Mismatching allocation and deallocation: loc_rev
[../bindings/c++/plstream.cc:1426]: (Error) Mismatching allocation and deallocation: loc_rev
[../bindings/c++/plstream.cc:1459]: (Error) Mismatching allocation and deallocation: loc_rev

Please see the attached patch that fixes the issue

Best regards

Ettl Martin

Discussion

  • Andrew Ross

    Andrew Ross - 2009-12-09

    Thanks. Patch applied.

     
  • Andrew Ross

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

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks