about summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-11-11 16:09:28 +0000
committerPeter Stephenson <pws@zsh.org>2015-11-11 16:09:28 +0000
commitf1312d1e2272ba97b08396328c2bf25f433f1c8c (patch)
treeac2628a20f4bfdcba7ca81c0767fbbfb98a2f76f /Src/Zle
parent5ed0cb8bc5eab686937ba8c857b482b031d05e45 (diff)
downloadzsh-f1312d1e2272ba97b08396328c2bf25f433f1c8c.tar.gz
zsh-f1312d1e2272ba97b08396328c2bf25f433f1c8c.tar.xz
zsh-f1312d1e2272ba97b08396328c2bf25f433f1c8c.zip
37091: clear lastline and lastlinesz when freeing
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/zle_utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c
index ffff8fd1c..6e9a98bde 100644
--- a/Src/Zle/zle_utils.c
+++ b/Src/Zle/zle_utils.c
@@ -1436,6 +1436,8 @@ freeundo(void)
     freechanges(changes);
     freechanges(nextchanges);
     zfree(lastline, lastlinesz);
+    lastline = NULL;
+    lastlinesz = 0;
 }
 
 /**/