aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/ChangeLog4
-rw-r--r--util/secmem.c1
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