diff options
author | 2014-10-24 20:02:07 +0000 | |
---|---|---|
committer | 2014-10-24 20:02:07 +0000 | |
commit | e413d0023ccd2adcd3d0a0b6ecd2b2f237981aba (patch) | |
tree | bff2e9f8ef43c9884c1312794b3616ab771a7d69 | |
parent | Fix indentation of closing brace. (diff) | |
download | wireguard-openbsd-e413d0023ccd2adcd3d0a0b6ecd2b2f237981aba.tar.xz wireguard-openbsd-e413d0023ccd2adcd3d0a0b6ecd2b2f237981aba.zip |
obvious sizes for free
-rw-r--r-- | sys/dev/rnd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/rnd.c b/sys/dev/rnd.c index e1aa5789daf..0fa701a009b 100644 --- a/sys/dev/rnd.c +++ b/sys/dev/rnd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rnd.c,v 1.162 2014/10/20 00:48:57 tedu Exp $ */ +/* $OpenBSD: rnd.c,v 1.163 2014/10/24 20:02:07 tedu Exp $ */ /* * Copyright (c) 2011 Theo de Raadt. @@ -843,7 +843,7 @@ randomread(dev_t dev, struct uio *uio, int ioflag) if (myctx) explicit_bzero(&lctx, sizeof(lctx)); explicit_bzero(buf, POOLBYTES); - free(buf, M_TEMP, 0); + free(buf, M_TEMP, POOLBYTES); return ret; } @@ -876,7 +876,7 @@ randomwrite(dev_t dev, struct uio *uio, int flags) arc4_init(NULL, NULL); explicit_bzero(buf, POOLBYTES); - free(buf, M_TEMP, 0); + free(buf, M_TEMP, POOLBYTES); return ret; } |