From: Sumant Kowshik Date: Tue, 12 Aug 2003 00:43:23 +0000 (+0000) Subject: Minor fix so that the program exits upon a poolfree failure X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=228090cfe805154b1d49630ed1bd6415df70f0dc;p=oota-llvm.git Minor fix so that the program exits upon a poolfree failure git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7762 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/runtime/GCCLibraries/libpoolalloc/PoolAllocatorChained.c b/runtime/GCCLibraries/libpoolalloc/PoolAllocatorChained.c index b3a715fe9b6..4fa0aedecff 100644 --- a/runtime/GCCLibraries/libpoolalloc/PoolAllocatorChained.c +++ b/runtime/GCCLibraries/libpoolalloc/PoolAllocatorChained.c @@ -242,6 +242,7 @@ void poolfree(PoolTy *Pool, char *Node) { if (!ALLOCATION_BEGINS(PS, Idx)) { printf("poolfree: Attempt to free middle of allocated array\n"); + exit(1); } /* Free the first node */