From 3a1703294b88978fae66b152068a8c380695f34e Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Thu, 20 Mar 2003 14:29:28 +0000 Subject: [PATCH] Fix incomplete munmap. (pjc) --- lib/config/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config/config.c b/lib/config/config.c index bfd1b6d3b..a40877a98 100644 --- a/lib/config/config.c +++ b/lib/config/config.c @@ -188,7 +188,7 @@ int read_config_fd(struct config_tree *cf, int fd, const char *file, dbg_free(p->fb); else { /* unmap the file */ - if (munmap((char *) (p->fb - mmap_offset), size)) { + if (munmap((char *) (p->fb - mmap_offset), size + mmap_offset)) { log_sys_error("munmap", file); r = 0; }