summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libc/stdlib/malloc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c
index bdc6ca69d3d..976880e757b 100644
--- a/lib/libc/stdlib/malloc.c
+++ b/lib/libc/stdlib/malloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: malloc.c,v 1.137 2011/05/20 20:02:08 otto Exp $ */
+/* $OpenBSD: malloc.c,v 1.138 2011/06/20 18:04:06 tedu Exp $ */
/*
* Copyright (c) 2008 Otto Moerbeek <otto@drijf.net>
*
@@ -548,6 +548,10 @@ omalloc_init(struct dir_info **dp)
case 'R':
mopts.malloc_realloc = 1;
break;
+ case 's':
+ mopts.malloc_freeprot = mopts.malloc_junk = 0;
+ mopts.malloc_guard = 0;
+ break;
case 'S':
mopts.malloc_freeprot = mopts.malloc_junk = 1;
mopts.malloc_guard = MALLOC_PAGESIZE;