summaryrefslogtreecommitdiff
path: root/sys/dev/random
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2020-06-25 20:17:34 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2020-06-25 20:17:34 +0000
commit4a711b8d04cca5a50566a78a62f769eed0f0de65 (patch)
treed020de486faa671c7ab9bf8101d19d6eebf8f03a /sys/dev/random
parentea143d1be682ae3871b140cd00b8cb435a4d0dc3 (diff)
Notes
Diffstat (limited to 'sys/dev/random')
-rw-r--r--sys/dev/random/randomdev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/random/randomdev.c b/sys/dev/random/randomdev.c
index 785a4e16e4c9..363d91c37731 100644
--- a/sys/dev/random/randomdev.c
+++ b/sys/dev/random/randomdev.c
@@ -241,8 +241,7 @@ int
if (error == ERESTART || error == EINTR)
error = 0;
- explicit_bzero(random_buf, bufsize);
- free(random_buf, M_ENTROPY);
+ zfree(random_buf, M_ENTROPY);
return (error);
}