diff options
author | VVKot <volodymyr.kot.ua@gmail.com> | 2021-01-31 17:19:39 +0000 |
---|---|---|
committer | VVKot <volodymyr.kot.ua@gmail.com> | 2021-03-28 08:37:04 +0100 |
commit | 2922f6e34bde27fa9788e806f871f50a2b46e6a7 (patch) | |
tree | 9b09adc139127a00ae765b6f5193891089e59c6f /src/nvim/ex_cmds.c | |
parent | 7ee09c61fe536a05e0a5fa88b52c4be50954dfde (diff) | |
download | rneovim-2922f6e34bde27fa9788e806f871f50a2b46e6a7.tar.gz rneovim-2922f6e34bde27fa9788e806f871f50a2b46e6a7.tar.bz2 rneovim-2922f6e34bde27fa9788e806f871f50a2b46e6a7.zip |
vim-patch:8.1.0126: various problems with 'vartabstop'
Problem: Various problems with 'vartabstop'.
Solution: Fix memory leak. Fix crash. Add a few more tests. (Christian
Brabandt, closes vim/vim#3076)
https://github.com/vim/vim/commit/307ac5c68e9e624ab713136d79f35bb73f780d2d
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 00d4513051..d34282419a 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -853,7 +853,6 @@ void ex_retab(exarg_T *eap) if (tabstop_count(old_vts_ary) > 0 || tabstop_count(new_vts_array) > 1) { set_string_option_direct("vts", -1, new_ts_str, OPT_FREE | OPT_LOCAL, 0); - xfree(new_ts_str); curbuf->b_p_vts_array = new_vts_array; xfree(old_vts_ary); } else { @@ -862,6 +861,7 @@ void ex_retab(exarg_T *eap) curbuf->b_p_ts = tabstop_first(new_vts_array); xfree(new_vts_array); } + xfree(new_ts_str); } coladvance(curwin->w_curswant); |