src: avoid map leak on failure (#28)
commitfe330a362bd082c40d4bd3e363a2b29246de1b40
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Mon, 6 Apr 2020 13:22:46 +0000 (6 06:22 -0700)
committerGitHub <noreply@github.com>
Mon, 6 Apr 2020 13:22:46 +0000 (6 15:22 +0200)
tree8c0ee0c31d3289667503c17ad66148d72c1a1d36
parent355629e00a638727bc4ed2356bac366c25bf16a7
src: avoid map leak on failure (#28)

while at it, make sure that munmap first parameter is properly
casted to avoid compilation warnings on systems that don't use
void * (ex: Solaris)
sljit_src/sljitProtExecAllocator.c