81c2858
To: vim-dev@vim.org
81c2858
Subject: Patch 7.2.211
81c2858
Fcc: outbox
81c2858
From: Bram Moolenaar <Bram@moolenaar.net>
81c2858
Mime-Version: 1.0
81c2858
Content-Type: text/plain; charset=UTF-8
81c2858
Content-Transfer-Encoding: 8bit
81c2858
------------
81c2858
81c2858
Patch 7.2.211
81c2858
Problem:    Memory leak when expanding a series of file names.
81c2858
Solution:   Use ga_clear_strings() instead of ga_clear().
81c2858
Files:	    src/misc1.c
81c2858
81c2858
81c2858
*** ../vim-7.2.210/src/misc1.c	2009-05-17 13:30:58.000000000 +0200
81c2858
--- src/misc1.c	2009-06-24 16:16:17.000000000 +0200
81c2858
***************
81c2858
*** 9193,9199 ****
81c2858
  		else if (vim_strpbrk(p, (char_u *)"$~") != NULL)
81c2858
  		{
81c2858
  		    vim_free(p);
81c2858
! 		    ga_clear(&ga);
81c2858
  		    i = mch_expand_wildcards(num_pat, pat, num_file, file,
81c2858
  								       flags);
81c2858
  		    recursive = FALSE;
81c2858
--- 9193,9199 ----
81c2858
  		else if (vim_strpbrk(p, (char_u *)"$~") != NULL)
81c2858
  		{
81c2858
  		    vim_free(p);
81c2858
! 		    ga_clear_strings(&ga);
81c2858
  		    i = mch_expand_wildcards(num_pat, pat, num_file, file,
81c2858
  								       flags);
81c2858
  		    recursive = FALSE;
81c2858
*** ../vim-7.2.210/src/version.c	2009-06-24 11:57:53.000000000 +0200
81c2858
--- src/version.c	2009-06-24 16:24:32.000000000 +0200
81c2858
***************
81c2858
*** 678,679 ****
81c2858
--- 678,681 ----
81c2858
  {   /* Add new patch number below this line */
81c2858
+ /**/
81c2858
+     211,
81c2858
  /**/
81c2858
81c2858
-- 
81c2858
hundred-and-one symptoms of being an internet addict:
81c2858
34. You laugh at people with 14400 baud modems.
81c2858
81c2858
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
81c2858
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
81c2858
\\\        download, build and distribute -- http://www.A-A-P.org        ///
81c2858
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///