mirror of
https://github.com/neovim/neovim.git
synced 2026-01-06 13:27:43 +00:00
vim-patch:8.2.0301: insufficient testing for exception handling (#20016)
Problem: Insufficient testing for exception handling and the "attention"
prompt.
Solution: Add test cases. (Yegappan Lakshmanan, closes vim/vim#5681)
b654103ad1
Fix memory leak from last char_u refactor.
This commit is contained in:
@@ -3111,8 +3111,7 @@ char *get_return_cmd(void *rettv)
|
||||
char *tofree = NULL;
|
||||
|
||||
if (rettv != NULL) {
|
||||
tofree = encode_tv2echo((typval_T *)rettv, NULL);
|
||||
s = encode_tv2echo((typval_T *)rettv, NULL);
|
||||
tofree = s = encode_tv2echo((typval_T *)rettv, NULL);
|
||||
}
|
||||
if (s == NULL) {
|
||||
s = "";
|
||||
|
||||
Reference in New Issue
Block a user