CVSROOT:        /cvs
Module name:    src
Changes by:     j...@cvs.openbsd.org    2017/08/15 11:57:57

Modified files:
        bin/ksh        : alloc.c 

Log message:
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@

Reply via email to