mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.1.2291: memory leak when executing command in a terminal
Problem: Memory leak when executing command in a terminal. Solution: Free "argv". (Dominique Pelle, closes #5208)
This commit is contained in:
parent
5ef1c6a483
commit
adf4aa200b
@ -844,6 +844,7 @@ ex_terminal(exarg_T *eap)
|
|||||||
// :term ++shell command
|
// :term ++shell command
|
||||||
if (unix_build_argv(cmd, &argv, &tofree1, &tofree2) == OK)
|
if (unix_build_argv(cmd, &argv, &tofree1, &tofree2) == OK)
|
||||||
term_start(NULL, argv, &opt, eap->forceit ? TERM_START_FORCEIT : 0);
|
term_start(NULL, argv, &opt, eap->forceit ? TERM_START_FORCEIT : 0);
|
||||||
|
vim_free(argv);
|
||||||
vim_free(tofree1);
|
vim_free(tofree1);
|
||||||
vim_free(tofree2);
|
vim_free(tofree2);
|
||||||
goto theend;
|
goto theend;
|
||||||
|
@ -741,6 +741,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 */
|
||||||
|
/**/
|
||||||
|
2291,
|
||||||
/**/
|
/**/
|
||||||
2290,
|
2290,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user