3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.192
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.192
3ef2ca
Problem:    Memory leak when giving E853.
3ef2ca
Solution:   Free the argument. (Dominique Pelle)
3ef2ca
Files:      src/eval.c
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.191/src/eval.c	2014-02-23 23:38:58.824760280 +0100
3ef2ca
--- src/eval.c	2014-02-24 03:27:39.244738435 +0100
3ef2ca
***************
3ef2ca
*** 21457,21462 ****
3ef2ca
--- 21457,21463 ----
3ef2ca
  		if (STRCMP(((char_u **)(newargs.ga_data))[i], arg) == 0)
3ef2ca
  		{
3ef2ca
  		    EMSG2(_("E853: Duplicate argument name: %s"), arg);
3ef2ca
+ 		    vim_free(arg);
3ef2ca
  		    goto erret;
3ef2ca
  		}
3ef2ca
  
3ef2ca
*** ../vim-7.4.191/src/version.c	2014-02-23 23:38:58.828760280 +0100
3ef2ca
--- src/version.c	2014-02-24 03:28:23.068738365 +0100
3ef2ca
***************
3ef2ca
*** 740,741 ****
3ef2ca
--- 740,743 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     192,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
Seen on the back of a biker's vest: If you can read this, my wife fell off.
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///