Commit 49c904c9 authored by Timo Teräs's avatar Timo Teräs

io: fix mmap bstream fd leak

We need to close the fd on destruction. This is what the corresponding
istream variant does too.
parent 36463504
......@@ -257,6 +257,7 @@ static void mmap_close(void *stream, csum_t csum, size_t *size)
*size = mbs->size;
munmap(mbs->ptr, mbs->size);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment