From: Volker Lendecke Date: Sun, 16 Mar 2008 10:55:59 +0000 (+0100) Subject: Need to close the /dev/zero fd X-Git-Tag: samba-3.3.0pre1~3296 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c2b2a9303d9c84ba4e059f13de9ccc401d08bd59;p=thirdparty%2Fsamba.git Need to close the /dev/zero fd --- diff --git a/source/modules/vfs_aio_fork.c b/source/modules/vfs_aio_fork.c index 21f63d0b87b..28428f2e498 100644 --- a/source/modules/vfs_aio_fork.c +++ b/source/modules/vfs_aio_fork.c @@ -56,6 +56,8 @@ static struct mmap_area *mmap_area_init(TALLOC_CTX *mem_ctx, size_t size) goto fail; } + close(fd); + result->size = size; talloc_set_destructor(result, mmap_area_destructor);