summaryrefslogtreecommitdiff
path: root/bitmap.c
diff options
context:
space:
mode:
authorguenther@openbsd.org <guenther@openbsd.org>2015-09-11 08:50:04 +0000
committerDamien Miller <djm@mindrot.org>2015-09-16 17:52:07 +1000
commit14692f7b8251cdda847e648a82735eef8a4d2a33 (patch)
treec1768b62df1e88a72f98c35ea271943ababa1508 /bitmap.c
parent846f6fa4cfa8483a9195971dbdd162220f199d85 (diff)
upstream commit
Use explicit_bzero() when zeroing before free() from Michael McConville (mmcconv1 (at) sccs.swarthmore.edu) ok millert@ djm@ Upstream-ID: 2e3337db046c3fe70c7369ee31515ac73ec00f50
Diffstat (limited to 'bitmap.c')
-rw-r--r--bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitmap.c b/bitmap.c
index 19cd2e8e3..f95032250 100644
--- a/bitmap.c
+++ b/bitmap.c
@@ -53,7 +53,7 @@ void
53bitmap_free(struct bitmap *b) 53bitmap_free(struct bitmap *b)
54{ 54{
55 if (b != NULL && b->d != NULL) { 55 if (b != NULL && b->d != NULL) {
56 memset(b->d, 0, b->len); 56 explicit_bzero(b->d, b->len);
57 free(b->d); 57 free(b->d);
58 } 58 }
59 free(b); 59 free(b);