[Scummvm-devel] Static code analysis with cppcheck
Ori Avtalion
ori at avtalion.name
Fri Oct 2 16:13:47 CEST 2009
Here are the results of a second run of cppcheck. This time using the
latest version (cppcheck 1.37), and including the tools/ directory.
Engines:
[./engines/agos/string.cpp:317]: Overlapping data buffer filename
[./engines/agos/subroutine.cpp:358]: Overlapping data buffer filename
[./engines/sci/engine/klists.cpp:445]: Memory leak: temp_array
[./engines/sci/sfx/softseq/amiga.cpp:592]: Memory leak: buffers
[./engines/sci/sfx/softseq/amiga.cpp:417]: Memory leak:
instrument.samples
Backends:
[./backends/platform/dc/selector.cpp:454]: Mismatching allocation and
deallocation: games
[./backends/platform/gp2x/gp2x.cpp:241]: Resource leak: newfp
[./backends/platform/gp2x/gp2x.cpp:162]: Resource leak: newfp
[./backends/platform/gp2xwiz/gp2xwiz-main.cpp:168]: Resource leak: newfp
[./backends/platform/gp2xwiz/gp2xwiz-main.cpp:128]: Resource leak: newfp
[./backends/platform/iphone/osys_main.cpp:296]: Resource leak: newfp
Tools:
[./tools/convbdf.c:941]: Resource leak: ofp
[./tools/create_lure/create_lure_dat.cpp:889]: Mismatching allocation
and deallocation: includeAnim
[./tools/create_lure/process_actions.cpp:548]: Mismatching allocation
and deallocation: randomActions
[./tools/md5table.c:372]: Memory leak: generationDate
[./tools/sci/sciunpack.cpp:440]: Resource leak: outf
[./tools/skycpt/cptcompiler.cpp:527]: Memory leak: buf288
More information about the Scummvm-devel
mailing list