0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.2.0883: memory leak in test 49

Problem:    Memory leak in test 49.
Solution:   Free "sfile" from the exception.
This commit is contained in:
Bram Moolenaar 2020-06-01 21:13:11 +02:00
parent 48b1c21809
commit 5fbf3bc3f9
2 changed files with 3 additions and 0 deletions

View File

@ -1278,6 +1278,7 @@ do_cmdline(
next = messages->next; next = messages->next;
emsg(messages->msg); emsg(messages->msg);
vim_free(messages->msg); vim_free(messages->msg);
vim_free(messages->sfile);
vim_free(messages); vim_free(messages);
messages = next; messages = next;
} }

View File

@ -746,6 +746,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
883,
/**/ /**/
882, 882,
/**/ /**/