From 68d88f60b9f2bcc3e28554c148312472d84c88cd Mon Sep 17 00:00:00 2001 From: leitner Date: Fri, 19 Oct 2007 10:59:47 +0000 Subject: [PATCH] munmap cleanup fix (Erdgeist) --- io/iob_addbuf_munmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/iob_addbuf_munmap.c b/io/iob_addbuf_munmap.c index 10b09b0..86bd370 100644 --- a/io/iob_addbuf_munmap.c +++ b/io/iob_addbuf_munmap.c @@ -3,7 +3,7 @@ #include "iob_internal.h" static void cleanup(struct iob_entry* x) { - munmap((char*)x->buf,x->n); + munmap((char*)x->buf,x->offset+x->n); } int iob_addbuf_munmap(io_batch* b,const void* buf,uint64 n) {