aboutsummaryrefslogtreecommitdiffstats
path: root/util/secmem.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2006-07-29 00:09:24 +0000
committerMarcus Brinkmann <[email protected]>2006-07-29 00:09:24 +0000
commitbd5aa4864df679e6d86be2abd81579a5200d2139 (patch)
treeb2500bd48b54ba66ad07cb3368975e69e391109e /util/secmem.c
parentPreparing a release candidate (diff)
downloadgnupg-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 'util/secmem.c')
-rw-r--r--util/secmem.c1
1 files changed, 1 insertions, 0 deletions
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