diff options
author | Peter Stephenson <pws@zsh.org> | 2015-11-11 16:09:28 +0000 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2015-11-11 16:09:28 +0000 |
commit | f1312d1e2272ba97b08396328c2bf25f433f1c8c (patch) | |
tree | ac2628a20f4bfdcba7ca81c0767fbbfb98a2f76f /Src/Zle | |
parent | 5ed0cb8bc5eab686937ba8c857b482b031d05e45 (diff) | |
download | zsh-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.c | 2 |
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; } /**/ |