summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorSumant Kowshik <kowshik@uiuc.edu>2003-08-12 00:43:23 +0000
committerSumant Kowshik <kowshik@uiuc.edu>2003-08-12 00:43:23 +0000
commit228090cfe805154b1d49630ed1bd6415df70f0dc (patch)
tree11c49a3d2237261dffd4696aaa8b7309934fa373 /runtime
parent7b56ce409fb6eb5f2e885399f26aa77386ef575a (diff)
downloadllvm-228090cfe805154b1d49630ed1bd6415df70f0dc.tar.gz
llvm-228090cfe805154b1d49630ed1bd6415df70f0dc.tar.bz2
llvm-228090cfe805154b1d49630ed1bd6415df70f0dc.tar.xz
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
Diffstat (limited to 'runtime')
-rw-r--r--runtime/GCCLibraries/libpoolalloc/PoolAllocatorChained.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/GCCLibraries/libpoolalloc/PoolAllocatorChained.c b/runtime/GCCLibraries/libpoolalloc/PoolAllocatorChained.c
index b3a715fe9b..4fa0aedecf 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 */