From 51186f1d3d38d4fbd4e9f0ff1a67c78ea9920fbf Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 16 Oct 2009 17:01:36 +0200 Subject: [PATCH] When running with --skip-safemalloc, still do some basic, but cheap, overrun checks. This greatly helps with eg. slow hosts in Buildbot. --- mysys/safemalloc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mysys/safemalloc.c b/mysys/safemalloc.c index a69051e6674..627e860fac8 100644 --- a/mysys/safemalloc.c +++ b/mysys/safemalloc.c @@ -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: