From 270c1a35d765b833c2b5a2c5f46655f5a31915a9 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Wed, 15 Jan 2014 00:34:45 -0800 Subject: [PATCH] Fix mappedMemoryFree on *nix --- src/util/memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/memory.c b/src/util/memory.c index 23d4b42b8..e5cf5aa47 100644 --- a/src/util/memory.c +++ b/src/util/memory.c @@ -44,6 +44,6 @@ void* fileMemoryMap(int fd, size_t size, int flags) { } void mappedMemoryFree(void* memory, size_t size) { - munmap(memory, memory); + munmap(memory, size); } -#endif \ No newline at end of file +#endif