OpenBSD/src QB3JvmI — bin/ksh alloc.c
Remove expensive pointer check in afree() The check added in rev 1.8 walks the whole freelist to catch cases where an unknown pointer is passed to afree(); but it can't catch cases whether the struct link has been corrupted by an invalid memory write. And it becomes very expensive when you have lots of items in an area (for example with a huge HISTSIZE). Discussed with & ok millert@ tb@
Version | Delta | File | |
---|---|---|---|
1.17 | +2 | -10 | bin/ksh/alloc.c |
+2 | -10 | 1 files |