X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FArena.c;h=76ac23cf88d3e81c65e2208627fefc4c48cb2946;hb=0372ac231bd18e993a2533f784805046876d5527;hp=5043f45fca98764151f64e1a0e904e19dcc87705;hpb=9508bce26ec071c7414336c36f23f03f936ee2d8;p=ghc-hetmet.git diff --git a/ghc/rts/Arena.c b/ghc/rts/Arena.c index 5043f45..76ac23c 100644 --- a/ghc/rts/Arena.c +++ b/ghc/rts/Arena.c @@ -1,5 +1,4 @@ /* ----------------------------------------------------------------------------- - $Id: Arena.c,v 1.5 2003/02/18 05:40:20 sof Exp $ (c) The University of Glasgow 2001 Arena allocation. Arenas provide fast memory allocation at the @@ -19,12 +18,13 @@ which most allocations are small. -------------------------------------------------------------------------- */ -#include #include "Rts.h" #include "RtsUtils.h" #include "BlockAlloc.h" #include "Arena.h" +#include + // Each arena struct is allocated using malloc(). struct _Arena { bdescr *current; @@ -109,7 +109,7 @@ arenaFree( Arena *arena ) ASSERT(arena_blocks >= 0); freeGroup(bd); } - free(arena); + stgFree(arena); } unsigned long