X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FStorage.c;fp=rts%2FStorage.c;h=0c9c60e58062538e3ba3535bb3564debffae8aa0;hb=88b35c172f9434fd98b700f706074d142914a8bb;hp=3594f7197f8e6a1a629afdda8407320780ed66ce;hpb=52589e05f86d593bc3e6ea3f1a0b8f6ceae94fe6;p=ghc-hetmet.git diff --git a/rts/Storage.c b/rts/Storage.c index 3594f71..0c9c60e 100644 --- a/rts/Storage.c +++ b/rts/Storage.c @@ -279,6 +279,10 @@ freeStorage (void) stgFree(generations[g].steps); stgFree(generations); freeAllMBlocks(); +#if defined(THREADED_RTS) + closeMutex(&sm_mutex); + closeMutex(&atomic_modify_mutvar_mutex); +#endif } /* -----------------------------------------------------------------------------