Commit cfe22ecb authored by Simon Marlow's avatar Simon Marlow

fix a shutdown memory leak

parent 6251f729
......@@ -753,12 +753,18 @@ stat_exit(int alloc)
statsClose();
}
if (GC_coll_cpu)
if (GC_coll_cpu) {
stgFree(GC_coll_cpu);
GC_coll_cpu = NULL;
if (GC_coll_elapsed)
GC_coll_cpu = NULL;
}
if (GC_coll_elapsed) {
stgFree(GC_coll_elapsed);
GC_coll_elapsed = NULL;
GC_coll_elapsed = NULL;
}
if (GC_coll_max_pause) {
stgFree(GC_coll_max_pause);
GC_coll_max_pause = NULL;
}
}
/* -----------------------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment