summaryrefslogtreecommitdiff
path: root/src/map/script.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/script.cpp')
-rw-r--r--src/map/script.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/script.cpp b/src/map/script.cpp
index 3a75728..5411e59 100644
--- a/src/map/script.cpp
+++ b/src/map/script.cpp
@@ -5077,8 +5077,14 @@ void do_final_script(void)
{
if (mapreg_dirty >= 0)
script_save_mapreg();
+#if 0
+ // labels are allocated just out of this
+ // (so it's a leak ...)
+ // this is disabled because it leads to a crash
+ // due to double-free
if (script_buf)
free(script_buf);
+#endif
if (mapreg_db)
numdb_final(mapreg_db, NULL);