# HG changeset patch # User Bram Moolenaar # Date 1573422303 -3600 # Node ID 517bfb2998aa65fb20e4c065635b812b50b08cf1 # Parent e9a47bcf7b94b93783d59effa6f1add2d2c22c8e patch 8.1.2291: memory leak when executing command in a terminal Commit: https://github.com/vim/vim/commit/adf4aa200b026dce91dd169143ee8b93e848ec8b Author: Bram Moolenaar Date: Sun Nov 10 22:36:44 2019 +0100 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 https://github.com/vim/vim/issues/5208) diff --git a/src/terminal.c b/src/terminal.c --- a/src/terminal.c +++ b/src/terminal.c @@ -844,6 +844,7 @@ ex_terminal(exarg_T *eap) // :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 --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2291, +/**/ 2290, /**/ 2289,