Patch 7.4.1865
Problem:    Memory leaks in tet49. (Dominique Pelle)
Solution:   Use NULL instead of an empty string.
Files:      src/eval.c


*** ../vim-7.4.1864/src/eval.c  2016-05-31 22:31:19.778640756 +0200
--- src/eval.c  2016-06-01 22:00:08.765477992 +0200
***************
*** 5298,5304 ****
                 * what follows. So set it here. */
                if (rettv->v_type == VAR_UNKNOWN && !evaluate && **arg == '(')
                {
!                   rettv->vval.v_string = vim_strsave((char_u *)"");
                    rettv->v_type = VAR_FUNC;
                }
  
--- 5298,5304 ----
                 * what follows. So set it here. */
                if (rettv->v_type == VAR_UNKNOWN && !evaluate && **arg == '(')
                {
!                   rettv->vval.v_string = NULL;
                    rettv->v_type = VAR_FUNC;
                }
  
*** ../vim-7.4.1864/src/version.c       2016-06-01 20:38:29.377545387 +0200
--- src/version.c       2016-06-01 22:05:31.005473559 +0200
***************
*** 755,756 ****
--- 755,758 ----
  {   /* Add new patch number below this line */
+ /**/
+     1865,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
29. Your phone bill comes to your doorstep in a box.

 /// Bram Moolenaar -- [email protected] -- 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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui