summary refs log tree commit diff
path: root/Src/Modules/mapfile.c
diff options
context:
space:
mode:
authorOliver Kiddle <okiddle@yahoo.co.uk>2018-04-07 18:52:37 +0200
committerOliver Kiddle <okiddle@yahoo.co.uk>2018-04-07 18:52:37 +0200
commit8e6c1d8b474c6fcbe3da77a9cb2b1d31d65a6ca4 (patch)
tree967f00cdab2c095830d1a3862edfb56bf5d5a13c /Src/Modules/mapfile.c
parentd8753f47bb29d6bd5ca8d311b80fadca719982be (diff)
downloadzsh-8e6c1d8b474c6fcbe3da77a9cb2b1d31d65a6ca4.tar.gz
zsh-8e6c1d8b474c6fcbe3da77a9cb2b1d31d65a6ca4.tar.xz
zsh-8e6c1d8b474c6fcbe3da77a9cb2b1d31d65a6ca4.zip
42605: properly free the vi registers hash
Diffstat (limited to 'Src/Modules/mapfile.c')
-rw-r--r--Src/Modules/mapfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/Modules/mapfile.c b/Src/Modules/mapfile.c
index 7a903418f..dd86fb596 100644
--- a/Src/Modules/mapfile.c
+++ b/Src/Modules/mapfile.c
@@ -158,7 +158,8 @@ setpmmapfiles(Param pm, HashTable ht)
 
 		setpmmapfile(v.pm, ztrdup(getstrvalue(&v)));
 	    }
-    deleteparamtable(ht);
+    if (ht != pm->u.hash)
+	deleteparamtable(ht);
 }
 
 /**/