To: vim_dev@googlegroups.com Subject: Patch 7.4.1865 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@Moolenaar.net -- 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 ///