diff options
author | Marcus Brinkmann <[email protected]> | 2006-07-29 00:09:24 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2006-07-29 00:09:24 +0000 |
commit | bd5aa4864df679e6d86be2abd81579a5200d2139 (patch) | |
tree | b2500bd48b54ba66ad07cb3368975e69e391109e | |
parent | Preparing a release candidate (diff) | |
download | gnupg-bd5aa4864df679e6d86be2abd81579a5200d2139.tar.gz gnupg-bd5aa4864df679e6d86be2abd81579a5200d2139.zip |
2006-07-29 Marcus Brinkmann <[email protected]>
* secmem.c (init_pool): Close FD after establishing the mapping.
Diffstat (limited to '')
-rw-r--r-- | util/ChangeLog | 4 | ||||
-rw-r--r-- | util/secmem.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/util/ChangeLog b/util/ChangeLog index d5bfefdc2..7b97faeb4 100644 --- a/util/ChangeLog +++ b/util/ChangeLog @@ -1,3 +1,7 @@ +2006-07-29 Marcus Brinkmann <[email protected]> + + * secmem.c (init_pool): Close FD after establishing the mapping. + 2006-07-20 David Shaw <[email protected]> * http.c (send_request): A zero-length proxy is the same as no diff --git a/util/secmem.c b/util/secmem.c index 6da58b2e6..5ffbfc6d3 100644 --- a/util/secmem.c +++ b/util/secmem.c @@ -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 |