mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 11:26:37 +00:00
vim-patch:8.1.0181: memory leak with trailing characters in skip expression
Problem: Memory leak with trailing characters in skip expression.
Solution: Free the return value.
a43ebe9454
This commit is contained in:
@@ -991,6 +991,7 @@ static int eval_expr_typval(const typval_T *expr, typval_T *argv,
|
||||
return FAIL;
|
||||
}
|
||||
if (*s != NUL) { // check for trailing chars after expr
|
||||
tv_clear(rettv);
|
||||
emsgf(_(e_invexpr2), s);
|
||||
return FAIL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user