To: vim-dev@vim.org Subject: Patch 7.2b.027 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 7.2b.027 Problem: Memory leak for Python, Perl, etc. script command with end marker. Solution: Free the memory of the end marker. (Andy Kittner) Files: src/ex_getln.c *** ../vim-7.2b.026/src/ex_getln.c Thu Jul 24 20:28:25 2008 --- src/ex_getln.c Wed Aug 6 12:49:07 2008 *************** *** 6252,6258 **** --- 6255,6264 ---- NUL, eap->cookie, 0); if (theline == NULL || STRCMP(end_pattern, theline) == 0) + { + vim_free(theline); break; + } ga_concat(&ga, theline); ga_append(&ga, '\n'); *** ../vim-7.2b.026/src/version.c Thu Jul 31 22:28:50 2008 --- src/version.c Wed Aug 6 14:17:37 2008 *************** *** 678,679 **** --- 678,681 ---- { /* Add new patch number below this line */ + /**/ + 27, /**/ -- An indication you must be a manager: You give constructive feedback to your dog. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///