diff options
| author | Guido van Rooij <guido@FreeBSD.org> | 1996-10-17 18:27:58 +0000 |
|---|---|---|
| committer | Guido van Rooij <guido@FreeBSD.org> | 1996-10-17 18:27:58 +0000 |
| commit | 102b3fa4c8bc36546cf54c2eff09cb3daed72558 (patch) | |
| tree | 3c5900e5c782301de49dc42e0a6431c496957235 /lib/libc/db | |
| parent | 0082fb465750f674062a40304d7e852a3eb83dec (diff) | |
Notes
Diffstat (limited to 'lib/libc/db')
| -rw-r--r-- | lib/libc/db/hash/hash_buf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/db/hash/hash_buf.c b/lib/libc/db/hash/hash_buf.c index 92e1f933adb2..b9cd4901112c 100644 --- a/lib/libc/db/hash/hash_buf.c +++ b/lib/libc/db/hash/hash_buf.c @@ -331,8 +331,10 @@ __buf_free(hashp, do_free, to_disk) } /* Check if we are freeing stuff */ if (do_free) { - if (bp->page) + if (bp->page) { + (void)memset(bp->page, 0, hashp->BSIZE); free(bp->page); + } BUF_REMOVE(bp); free(bp); bp = LRU; |
