When running with --skip-safemalloc, still do some basic, but cheap, overrun checks.

This greatly helps with eg. slow hosts in Buildbot.
This commit is contained in:
unknown 2009-10-16 17:01:36 +02:00
parent 79181a1c69
commit 51186f1d3d

View File

@ -272,6 +272,9 @@ void _myfree(void *ptr, const char *filename, uint lineno, myf myflags)
irem= (struct st_irem *) ((char*) ptr- ALIGN_SIZE(sizeof(struct st_irem))-
sf_malloc_prehunc);
if (sf_malloc_quick)
(void) _checkchunk(irem, filename, lineno);
/*
Check to make sure that we have a real remember structure.
Note: this test could fail for four reasons: