joyent/node — Issue #2410: Warnings produced by cppcheck
Author: neuschaefer
Created: 2011-12-23 11:18:40+00:00
State: open

Running cppcheck (cppcheck.sf.net) over the non-third party directories of the Node.js git repository (v0.6.6-120-g6ac22bf) produces the following warnings:

$ cppcheck -f -q src/ test tools/ benchmark/
[src/node.cc:2542]: (error) Using sizeof for array given as function argument returns the size of pointer.
[src/node_crypto.cc:3146]: (error) Memory leak: md_value
[tools/gyp/test/dependencies/c/c.c:1]: (error) Invalid number of character ({) when these macros are defined: ''.
[benchmark/io.c:60]: (error) Dereferencing 'fd' after it is deallocated / released
[benchmark/io.c:58]: (error) Dereferencing 'fd' after it is deallocated / released