X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=rts%2FStorage.c;h=0c9c60e58062538e3ba3535bb3564debffae8aa0;hp=3594f7197f8e6a1a629afdda8407320780ed66ce;hb=9da4639011348fb6c318e3cba4b08622f811d9c4;hpb=7b1b3279afe25b4e65ee9ebbafc5e9e38a3b888b 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 } /* -----------------------------------------------------------------------------