summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2016-05-04 15:25:47 +0000
committerdelphij <delphij@FreeBSD.org>2016-05-04 15:25:47 +0000
commit1fbf92c3ea82371bfc10d47cb9dc715a18f1287b (patch)
tree6f4e70772965a66f775c23c7f2c8731a6ada6fbd /lib
parent39baf3a8165fd1fa06257b6812862e7113c5b905 (diff)
downloadFreeBSD-src-1fbf92c3ea82371bfc10d47cb9dc715a18f1287b.zip
FreeBSD-src-1fbf92c3ea82371bfc10d47cb9dc715a18f1287b.tar.gz
Fix multiple OpenSSL vulnerabilitites. [SA-16:17]
Fix performance regression in libc hash(3). [EN-16:06] Fix excessive latency in x86 IPI delivery. [EN-16:07] Fix memory leak in ZFS. [EN-16:08] Approved by: so
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/db/hash/hash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/db/hash/hash.c b/lib/libc/db/hash/hash.c
index 333b1a1..12220a9 100644
--- a/lib/libc/db/hash/hash.c
+++ b/lib/libc/db/hash/hash.c
@@ -423,7 +423,8 @@ hdestroy(HTAB *hashp)
free(hashp->tmp_buf);
if (hashp->fp != -1) {
- (void)_fsync(hashp->fp);
+ if (hashp->save_file)
+ (void)_fsync(hashp->fp);
(void)_close(hashp->fp);
}
OpenPOWER on IntegriCloud