]> granicus.if.org Git - gc/commit
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>
Tue, 8 Nov 2016 18:55:54 +0000 (21:55 +0300)
commit5ac6d680822e3bd6b10a32884f1d344213a56d72
tree1c5c5929b74b1a9e6a4665f083c0d7dc474e7dd1
parent06b4f6acccbc71fa6caa47edd12f8c1243c850b8
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