1
0
forked from aniani/vim

patch 9.0.0820: memory leak with empty shell command

Problem:    Memory leak with empty shell command.
Solution:   Free the empty string.
This commit is contained in:
Bram Moolenaar
2022-10-31 12:24:12 +00:00
parent 03d6e6f42b
commit 86e6717ace
4 changed files with 19 additions and 0 deletions

View File

@@ -914,6 +914,11 @@ f_win_move_statusline(typval_T *argvars, typval_T *rettv)
wp = find_win_by_nr_or_id(&argvars[0]);
if (wp == NULL || win_valid_popup(wp))
return;
if (!win_valid(wp))
{
emsg(_(e_cannot_resize_window_in_another_tab_page));
return;
}
offset = (int)tv_get_number(&argvars[1]);
win_drag_status_line(wp, offset);