diff options
Diffstat (limited to 'libglusterfs/src/iobuf.c')
-rw-r--r-- | libglusterfs/src/iobuf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libglusterfs/src/iobuf.c b/libglusterfs/src/iobuf.c index 5ef5d284812..af798c4b68c 100644 --- a/libglusterfs/src/iobuf.c +++ b/libglusterfs/src/iobuf.c @@ -99,7 +99,8 @@ __iobuf_arena_destroy (struct iobuf_arena *iobuf_arena) __iobuf_arena_destroy_iobufs (iobuf_arena); - if (iobuf_arena->mem_base) + if (iobuf_arena->mem_base + && iobuf_arena->mem_base != MAP_FAILED) munmap (iobuf_arena->mem_base, iobuf_pool->arena_size); FREE (iobuf_arena); |