Karsten Hopp 2729bb
To: vim-dev@vim.org
Karsten Hopp 2729bb
Subject: Patch 7.1.230
Karsten Hopp 2729bb
Fcc: outbox
Karsten Hopp 2729bb
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 2729bb
Mime-Version: 1.0
Karsten Hopp 2729bb
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 2729bb
Content-Transfer-Encoding: 8bit
Karsten Hopp 2729bb
------------
Karsten Hopp 2729bb
Karsten Hopp 2729bb
Patch 7.1.230
Karsten Hopp 2729bb
Problem:    Memory leak when executing SourceCmd autocommands.
Karsten Hopp 2729bb
Solution:   Free the memory. (Dominique Pelle)
Karsten Hopp 2729bb
Files:	    src/ex_cmds2.c
Karsten Hopp 2729bb
Karsten Hopp 2729bb
Karsten Hopp 2729bb
*** ../vim-7.1.229/src/ex_cmds2.c	Sun Jan  6 20:05:36 2008
Karsten Hopp 2729bb
--- src/ex_cmds2.c	Tue Jan 15 20:41:28 2008
Karsten Hopp 2729bb
***************
Karsten Hopp 2729bb
*** 2889,2899 ****
Karsten Hopp 2729bb
      if (has_autocmd(EVENT_SOURCECMD, fname_exp, NULL)
Karsten Hopp 2729bb
  	    && apply_autocmds(EVENT_SOURCECMD, fname_exp, fname_exp,
Karsten Hopp 2729bb
  							       FALSE, curbuf))
Karsten Hopp 2729bb
  # ifdef FEAT_EVAL
Karsten Hopp 2729bb
! 	return aborting() ? FAIL : OK;
Karsten Hopp 2729bb
  # else
Karsten Hopp 2729bb
! 	return OK;
Karsten Hopp 2729bb
  # endif
Karsten Hopp 2729bb
  
Karsten Hopp 2729bb
      /* Apply SourcePre autocommands, they may get the file. */
Karsten Hopp 2729bb
      apply_autocmds(EVENT_SOURCEPRE, fname_exp, fname_exp, FALSE, curbuf);
Karsten Hopp 2729bb
--- 2889,2902 ----
Karsten Hopp 2729bb
      if (has_autocmd(EVENT_SOURCECMD, fname_exp, NULL)
Karsten Hopp 2729bb
  	    && apply_autocmds(EVENT_SOURCECMD, fname_exp, fname_exp,
Karsten Hopp 2729bb
  							       FALSE, curbuf))
Karsten Hopp 2729bb
+     {
Karsten Hopp 2729bb
  # ifdef FEAT_EVAL
Karsten Hopp 2729bb
! 	retval = aborting() ? FAIL : OK;
Karsten Hopp 2729bb
  # else
Karsten Hopp 2729bb
! 	retval = OK;
Karsten Hopp 2729bb
  # endif
Karsten Hopp 2729bb
+ 	goto theend;
Karsten Hopp 2729bb
+     }
Karsten Hopp 2729bb
  
Karsten Hopp 2729bb
      /* Apply SourcePre autocommands, they may get the file. */
Karsten Hopp 2729bb
      apply_autocmds(EVENT_SOURCEPRE, fname_exp, fname_exp, FALSE, curbuf);
Karsten Hopp 2729bb
*** ../vim-7.1.229/src/version.c	Mon Jan 14 20:11:37 2008
Karsten Hopp 2729bb
--- src/version.c	Tue Jan 15 22:15:03 2008
Karsten Hopp 2729bb
***************
Karsten Hopp 2729bb
*** 668,669 ****
Karsten Hopp 2729bb
--- 668,671 ----
Karsten Hopp 2729bb
  {   /* Add new patch number below this line */
Karsten Hopp 2729bb
+ /**/
Karsten Hopp 2729bb
+     230,
Karsten Hopp 2729bb
  /**/
Karsten Hopp 2729bb
Karsten Hopp 2729bb
-- 
Karsten Hopp 2729bb
Citizens are not allowed to attend a movie house or theater nor ride in a
Karsten Hopp 2729bb
public streetcar within at least four hours after eating garlic.
Karsten Hopp 2729bb
		[real standing law in Indiana, United States of America]
Karsten Hopp 2729bb
Karsten Hopp 2729bb
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 2729bb
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 2729bb
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 2729bb
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///