]> granicus.if.org Git - gc/commit
Workaround 'memory leak: result' cppcheck false error (POSIX)
authorIvan Maidanski <ivmai@mail.ru>
Tue, 7 Mar 2017 16:23:49 +0000 (19:23 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 6 Apr 2017 08:32:56 +0000 (11:32 +0300)
commit0b8fa96118356066aa495f7a6345acdd8b25d52c
tree889e346367dc1668548c77c9caa81bba579c3aeb
parent71941fa82be7a1c84fd9fc280f054b56fea1bd77
Workaround 'memory leak: result' cppcheck false error (POSIX)

The report is a false positive because result (returned by mmap) should
be equal to start_addr (passed to mmap).

* os_dep.c [USE_MUNMAP && !USE_WINALLOC] (GC_unmap, GC_unmap_gap): Call
GC_noop1(result) if CPPCHECK (same as for LINT2).
* os_dep.c [USE_MUNMAP && !USE_WINALLOC && NACL] (GC_remap): Likewise.
os_dep.c