OSDN Git Service

Minor fix so that the program exits upon a poolfree failure
authorSumant Kowshik <kowshik@uiuc.edu>
Tue, 12 Aug 2003 00:43:23 +0000 (00:43 +0000)
committerSumant Kowshik <kowshik@uiuc.edu>
Tue, 12 Aug 2003 00:43:23 +0000 (00:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7762 91177308-0d34-0410-b5e6-96231b3b80d8

runtime/GCCLibraries/libpoolalloc/PoolAllocatorChained.c

index b3a715f..4fa0aed 100644 (file)
@@ -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 */