vim-patch:8.2.2142: memory leak when heredoc is not terminated

Problem:    Memory leak when heredoc is not terminated.
Solution:   Free heredoc_trimmed.
fffdf4754f
This commit is contained in:
Jan Edmund Lazo
2020-12-22 01:01:10 -05:00
parent dd515b7097
commit 0561243771

View File

@@ -2484,6 +2484,7 @@ errret_2:
ga_clear_strings(&newlines);
ret_free:
xfree(skip_until);
xfree(heredoc_trimmed);
xfree(line_to_free);
xfree(fudi.fd_newkey);
xfree(name);