Commit cf036e5b authored by Simon Marlow's avatar Simon Marlow
Browse files

free cap->saved_mut_lists too

fixes some memory leakage at shutdown
parent 9136c7f5
...@@ -830,6 +830,7 @@ static void ...@@ -830,6 +830,7 @@ static void
freeCapability (Capability *cap) freeCapability (Capability *cap)
{ {
stgFree(cap->mut_lists); stgFree(cap->mut_lists);
stgFree(cap->saved_mut_lists);
#if defined(THREADED_RTS) #if defined(THREADED_RTS)
freeSparkPool(cap->sparks); freeSparkPool(cap->sparks);
#endif #endif
......
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