Free full_prog_argv at exit, closing a memory leak
[ghc-hetmet.git] / rts / RtsStartup.c
index edb8088..afa38aa 100644 (file)
@@ -338,6 +338,9 @@ hs_exit_(rtsBool wait_foreign)
     
     OnExitHook();
 
+    // Free the full argv storage
+    freeFullProgArgv();
+
 #if defined(THREADED_RTS)
     ioManagerDie();
 #endif