From 3be50219fdc697e257af27342dd227f561a3afde Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 26 Sep 2011 14:21:40 +0000 Subject: Abort on guarded memory manager errors if WITH_ASSERT_ABORT is set --- intern/guardedalloc/intern/mallocn.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'intern/guardedalloc') diff --git a/intern/guardedalloc/intern/mallocn.c b/intern/guardedalloc/intern/mallocn.c index 3614445ad27..cedaf53a4bb 100644 --- a/intern/guardedalloc/intern/mallocn.c +++ b/intern/guardedalloc/intern/mallocn.c @@ -711,6 +711,10 @@ static void rem_memblock(MemHead *memh) static void MemorY_ErroR(const char *block, const char *error) { print_error("Memoryblock %s: %s\n",block, error); + +#ifdef WITH_ASSERT_ABORT + abort(); +#endif } static const char *check_memlist(MemHead *memh) -- cgit v1.2.3