Patch 8.1.0148
Problem:    Memory leak when using :tcl expr command.
Solution:   Free the result of expression evaluation. (Dominique Pelle,
            closes #3150)
Files:      src/if_tcl.c


*** ../vim-8.1.0147/src/if_tcl.c        2017-09-16 19:58:18.000000000 +0200
--- src/if_tcl.c        2018-07-04 22:09:29.189322096 +0200
***************
*** 1385,1391 ****
--- 1385,1394 ----
      if (str == NULL)
        Tcl_SetResult(interp, _("invalid expression"), TCL_STATIC);
      else
+     {
        Tcl_SetResult(interp, str, TCL_VOLATILE);
+       vim_free(str);
+     }
      err = vimerror(interp);
  #else
      Tcl_SetResult(interp, _("expressions disabled at compile time"), 
TCL_STATIC);
*** ../vim-8.1.0147/src/version.c       2018-07-04 22:03:22.110919832 +0200
--- src/version.c       2018-07-04 22:08:39.721556114 +0200
***************
*** 791,792 ****
--- 791,794 ----
  {   /* Add new patch number below this line */
+ /**/
+     148,
  /**/

-- 
Rule #1: Don't give somebody a tool that he's going to hurt himself with.

 /// 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