Karsten Hopp 4b94f4
To: vim_dev@googlegroups.com
Karsten Hopp 4b94f4
Subject: Patch 7.4.922
Karsten Hopp 4b94f4
Fcc: outbox
Karsten Hopp 4b94f4
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 4b94f4
Mime-Version: 1.0
Karsten Hopp 4b94f4
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 4b94f4
Content-Transfer-Encoding: 8bit
Karsten Hopp 4b94f4
------------
Karsten Hopp 4b94f4
Karsten Hopp 4b94f4
Patch 7.4.922
Karsten Hopp 4b94f4
Problem:    Leaking memory with ":helpt {dir-not-exists}".
Karsten Hopp 4b94f4
Solution:   Free dirname. (Dominique Pelle)
Karsten Hopp 4b94f4
Files:      src/ex_cmds.c
Karsten Hopp 4b94f4
Karsten Hopp 4b94f4
Karsten Hopp 4b94f4
*** ../vim-7.4.921/src/ex_cmds.c	2015-11-02 14:45:12.135936003 +0100
Karsten Hopp 4b94f4
--- src/ex_cmds.c	2015-11-10 21:04:42.217660195 +0100
Karsten Hopp 4b94f4
***************
Karsten Hopp 4b94f4
*** 6574,6579 ****
Karsten Hopp 4b94f4
--- 6574,6580 ----
Karsten Hopp 4b94f4
      if (dirname == NULL || !mch_isdir(dirname))
Karsten Hopp 4b94f4
      {
Karsten Hopp 4b94f4
  	EMSG2(_("E150: Not a directory: %s"), eap->arg);
Karsten Hopp 4b94f4
+ 	vim_free(dirname);
Karsten Hopp 4b94f4
  	return;
Karsten Hopp 4b94f4
      }
Karsten Hopp 4b94f4
  
Karsten Hopp 4b94f4
*** ../vim-7.4.921/src/version.c	2015-11-10 20:52:00.937285809 +0100
Karsten Hopp 4b94f4
--- src/version.c	2015-11-10 21:05:04.313438979 +0100
Karsten Hopp 4b94f4
***************
Karsten Hopp 4b94f4
*** 743,744 ****
Karsten Hopp 4b94f4
--- 743,746 ----
Karsten Hopp 4b94f4
  {   /* Add new patch number below this line */
Karsten Hopp 4b94f4
+ /**/
Karsten Hopp 4b94f4
+     922,
Karsten Hopp 4b94f4
  /**/
Karsten Hopp 4b94f4
Karsten Hopp 4b94f4
-- 
Karsten Hopp 4b94f4
I AM THANKFUL...
Karsten Hopp 4b94f4
...for all the complaining I hear about the government
Karsten Hopp 4b94f4
because it means we have freedom of speech.
Karsten Hopp 4b94f4
Karsten Hopp 4b94f4
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 4b94f4
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 4b94f4
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 4b94f4
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///