To: vim_dev@googlegroups.com Subject: Patch 8.1.2291 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.1.2291 Problem: Memory leak when executing command in a terminal. Solution: Free "argv". (Dominique Pelle, closes #5208) Files: src/terminal.c *** ../vim-8.1.2290/src/terminal.c 2019-11-04 23:18:31.431027128 +0100 --- src/terminal.c 2019-11-10 22:19:15.650778731 +0100 *************** *** 844,849 **** --- 844,850 ---- // :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; *** ../vim-8.1.2290/src/version.c 2019-11-10 21:25:41.137362272 +0100 --- src/version.c 2019-11-10 22:36:35.870462279 +0100 *************** *** 743,744 **** --- 743,746 ---- { /* Add new patch number below this line */ + /**/ + 2291, /**/ -- hundred-and-one symptoms of being an internet addict: 60. As your car crashes through the guardrail on a mountain road, your first instinct is to search for the "back" button. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///