Workaround 'resource leak' error reported by cppcheck (tools, test)
authorIvan Maidanski <ivmai@mail.ru>
Thu, 13 Oct 2016 08:33:17 +0000 (11:33 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 13 Oct 2016 08:33:17 +0000 (11:33 +0300)
commit88990a302569d211c718f33411d51c7e638f5abf
treeba0178d9f7f3eb59fde8a629dc1cdcbf5ac76bfd
parent3c0df798ff952ba5c2915788b7671c399f52d270
Workaround 'resource leak' error reported by cppcheck (tools, test)

* tests/test.c [GC_GCJ_SUPPORT && TEST_WITH_SYSTEM_MALLOC] (reverse):
Call GC_noop1 for malloc() result.
* tools/if_not_there.c (main): Move "f" local variable assignments
outside conditional expression.
tests/test.c
tools/if_not_there.c