joyent/node — pull request #2311 by neuschaefer (2011-12-10 11:43:16+00:00)
Title: Fix (two little) bugs found with Cppcheck

This branch fixes the following cppcheck[1] warnings:
[benchmark/io.c:60]: (error) Dereferencing 'fd' after it is deallocated / released
[benchmark/io.c:58]: (error) Dereferencing 'fd' after it is deallocated / released
[src/node_crypto.cc:4126]: (error) Memory leak: key

I wasn't all sure about these and cppcheck also reported a lot of warnings for the third-party libraries:
[src/node.cc:2505]: (error) Using sizeof for array given as function argument returns the size of pointer.
[src/node_crypto.cc:3193]: (error) Memory leak: md_value
[src/platform_win32.cc:130]: (error) Mismatching allocation and deallocation: title_w
[src/platform_win32.cc:146]: (error) Mismatching allocation and deallocation: title_w

[1] http://sourceforge.net/projects/cppcheck/

Greetings,
Jonathan Neuschäfer