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)
diff --git a/src/terminal.c b/src/terminal.c
index a3ca993..dcb4c39 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -844,6 +844,7 @@
// :term ++shell command
if (unix_build_argv(cmd, &argv, &tofree1, &tofree2) == OK)
term_start(NULL, argv, &opt, eap->forceit ? TERM_START_FORCEIT : 0);
+ vim_free(argv);
vim_free(tofree1);
vim_free(tofree2);
goto theend;
diff --git a/src/version.c b/src/version.c
index da05b0a..f2b1a75 100644
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2291,
+/**/
2290,
/**/
2289,