[project @ 2003-07-23 13:39:11 by simonmar]
[ghc-hetmet.git] / ghc / rts / RetainerSet.c
index 83e0d9f..6834676 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: RetainerSet.c,v 1.2 2001/11/26 16:54:21 simonmar Exp $
+ * $Id: RetainerSet.c,v 1.4 2003/03/25 17:58:49 sof Exp $
  *
  * (c) The GHC Team, 2001
  * Author: Sungwoo Park
@@ -10,6 +10,8 @@
 
 #ifdef PROFILING
 
+#include <stdlib.h>
+
 #include "Rts.h"
 #include "RtsFlags.h"
 #include "Stats.h"
@@ -491,7 +493,7 @@ outputAllRetainerSet(FILE *prof_file)
        fprintf(prof_file, "}\n");
     }
 
-    free(rsArray);
+    stgFree(rsArray);
 }
 #endif // SECOND_APPROACH