diff options
author | jsg <> | 2017-05-11 02:26:39 +0000 |
---|---|---|
committer | jsg <> | 2017-05-11 02:26:39 +0000 |
commit | c89e8811cb675ecff7033a897289e9ec8be10fbd (patch) | |
tree | 57e3f6c5fc4092cb1e77a8d62903a58378f79c7c /src/lib/libc/stdlib/malloc.c | |
parent | 02508bcceb2bbb57d18240c63d526e1ce34f43f5 (diff) | |
download | openbsd-c89e8811cb675ecff7033a897289e9ec8be10fbd.tar.gz openbsd-c89e8811cb675ecff7033a897289e9ec8be10fbd.tar.bz2 openbsd-c89e8811cb675ecff7033a897289e9ec8be10fbd.zip |
Fix a problem introduced in freezero() conversion and use
sizeof(struct) not sizeof(pointer).
otto@ points out that on OpenBSD currently freezero() would have still
zeroed the entire allocation, but this is not documented behaviour and
may change in future.
ok tom@
Diffstat (limited to 'src/lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions