2006-07-29 Marcus Brinkmann <marcus@g10code.de>

* secmem.c (init_pool): Close FD after establishing the mapping.
This commit is contained in:
Marcus Brinkmann 2006-07-29 00:09:24 +00:00
parent f19e8892a2
commit bd5aa4864d
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2006-07-29 Marcus Brinkmann <marcus@g10code.de>
* secmem.c (init_pool): Close FD after establishing the mapping.
2006-07-20 David Shaw <dshaw@jabberwocky.com>
* http.c (send_request): A zero-length proxy is the same as no

View File

@ -247,6 +247,7 @@ init_pool( size_t n)
else {
pool = mmap( 0, poolsize, PROT_READ|PROT_WRITE,
MAP_PRIVATE, fd, 0);
close (fd);
}
}
#endif