summaryrefslogtreecommitdiff
path: root/rts/RtsStartup.c
diff options
context:
space:
mode:
Diffstat (limited to 'rts/RtsStartup.c')
-rw-r--r--rts/RtsStartup.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/rts/RtsStartup.c b/rts/RtsStartup.c
index a2630b2f8f..7c2be0d7ef 100644
--- a/rts/RtsStartup.c
+++ b/rts/RtsStartup.c
@@ -434,6 +434,11 @@ hs_exit_(rtsBool wait_foreign)
// Free the various argvs
freeRtsArgs();
+
+#ifndef CMINUSMINUS
+ // Free threading resources
+ freeThreadingResources();
+#endif
}
// Flush stdout and stderr. We do this during shutdown so that it