mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.1.0936: may leak memory when using 'vartabstop'
Problem: May leak memory when using 'vartabstop'. (Kuang-che Wu) Solution: Fix handling allocated memory for 'vartabstop'. (closes #3976)
This commit is contained in:
@@ -2170,9 +2170,7 @@ free_buf_options(
|
||||
vim_free(buf->b_p_vsts_array);
|
||||
buf->b_p_vsts_array = NULL;
|
||||
clear_string_option(&buf->b_p_vts);
|
||||
if (buf->b_p_vts_array)
|
||||
vim_free(buf->b_p_vts_array);
|
||||
buf->b_p_vts_array = NULL;
|
||||
VIM_CLEAR(buf->b_p_vts_array);
|
||||
#endif
|
||||
#ifdef FEAT_KEYMAP
|
||||
clear_string_option(&buf->b_p_keymap);
|
||||
|
Reference in New Issue
Block a user