diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-06-28 22:23:00 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-06-28 22:23:00 +0200 |
commit | 307ac5c68e9e624ab713136d79f35bb73f780d2d (patch) | |
tree | e0d413bd5431690d4331b94cc6a4ab46e0ed2e43 /src/ex_cmds.c | |
parent | 630afe889a2a02b367ea8eaaa48e66ed81e77ff3 (diff) |
patch 8.1.0126: various problems with 'vartabstop'v8.1.0126
Problem: Various problems with 'vartabstop'.
Solution: Fix memory leak. Fix crash. Add a few more tests. (Christian
Brabandt, closes #3076)
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 3384fe85bf..a30178b641 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -866,7 +866,6 @@ ex_retab(exarg_T *eap) { set_string_option_direct((char_u *)"vts", -1, new_ts_str, OPT_FREE|OPT_LOCAL, 0); - vim_free(new_ts_str); curbuf->b_p_vts_array = new_vts_array; vim_free(old_vts_ary); } @@ -877,6 +876,7 @@ ex_retab(exarg_T *eap) curbuf->b_p_ts = tabstop_first(new_vts_array); vim_free(new_vts_array); } + vim_free(new_ts_str); } #else curbuf->b_p_ts = new_ts; |