Free more things that we allocate
[ghc-hetmet.git] / rts / posix / Signals.c
index a5044cd..2380eac 100644 (file)
@@ -545,4 +545,11 @@ initDefaultHandlers()
 #endif
 }
 
+void
+freeSignalHandlers(void) {
+    if (signal_handlers != NULL) {
+        stgFree(signal_handlers);
+    }
+}
+
 #endif /* RTS_USER_SIGNALS */