Fix a few cppcheck errors (#4281)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 23 Jan 2017 02:11:40 +0000 (03:11 +0100)
committerGitHub <noreply@github.com>
Mon, 23 Jan 2017 02:11:40 +0000 (03:11 +0100)
commit5a28370d8a8945877e7537762770d1119c34bf9f
tree0dfcb3432490fb90b0f7c80c4f2c7dc11b644fc4
parent5c62590ba739d5960019890fe458e9b326b51993
Fix a few cppcheck errors (#4281)

* [zlib] Fix CppCheck error "Shifting a negative value is undefined behaviour"

This matches what upstream now does:
https://github.com/madler/zlib/blob/2edb94a3025d288dc251bc6cbb2c02e60fbd7438/inflate.c#L1529

* [scripts] Fix CppCheck error "Memory leak: nargv"

* [tests] Fix CppCheck error: "Memory leak: reference"

* [aot-compiler] Fix CppCheck error: "Resource leak: infile"

* [metadata] Fix CppCheck error: "Uninitialized variable: ret"
mono/metadata/w32process-unix-bsd.c
mono/mini/aot-compiler.c
mono/unit-tests/test-memfuncs.c
scripts/launch.c
support/inflate.c