munmap cleanup fix (Erdgeist)
This commit is contained in:
parent
9788418026
commit
68d88f60b9
@ -3,7 +3,7 @@
|
|||||||
#include "iob_internal.h"
|
#include "iob_internal.h"
|
||||||
|
|
||||||
static void cleanup(struct iob_entry* x) {
|
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) {
|
int iob_addbuf_munmap(io_batch* b,const void* buf,uint64 n) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user