summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2009-11-27 19:59:50 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2009-11-27 19:59:50 +0000
commit4c2fffd770f9be43ef0e430e7306458326519ca2 (patch)
tree5ed44613faad667bd55b64f969fdd54a8c7f39ba
parent5f41f0b935b257c09b4ba9e02f6200ebe5ded15f (diff)
No need to clear a mmapped region; from Fabien Romano and Jonathan
Armani
-rw-r--r--lib/libc/stdlib/malloc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c
index adcf00be565..1743e20a894 100644
--- a/lib/libc/stdlib/malloc.c
+++ b/lib/libc/stdlib/malloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: malloc.c,v 1.118 2009/11/02 19:26:17 todd Exp $ */
+/* $OpenBSD: malloc.c,v 1.119 2009/11/27 19:59:49 otto Exp $ */
/*
* Copyright (c) 2008 Otto Moerbeek <otto@drijf.net>
*
@@ -715,7 +715,6 @@ omalloc_init(struct dir_info **dp)
return 1;
}
malloc_used += regioninfo_size;
- memset(d->r, 0, regioninfo_size);
d->canary1 = mopts.malloc_canary ^ (u_int32_t)(uintptr_t)d;
d->canary2 = ~d->canary1;