astepano / rpms / vim

Forked from rpms/vim 6 years ago
Clone
55cdc3b
To: vim-dev@vim.org
55cdc3b
Subject: Patch 7.2.002
55cdc3b
Fcc: outbox
55cdc3b
From: Bram Moolenaar <Bram@moolenaar.net>
55cdc3b
Mime-Version: 1.0
55cdc3b
Content-Type: text/plain; charset=ISO-8859-1
55cdc3b
Content-Transfer-Encoding: 8bit
55cdc3b
------------
55cdc3b
55cdc3b
Patch 7.2.002
55cdc3b
Problem:    Leaking memory when displaying menus.
55cdc3b
Solution:   Free allocated memory. (Dominique Pelle)
55cdc3b
Files:      src/menu.c
55cdc3b
55cdc3b
55cdc3b
*** ../vim-7.2.001/src/menu.c	Wed Jun 25 00:19:17 2008
55cdc3b
--- src/menu.c	Sat Aug 16 05:38:45 2008
55cdc3b
***************
55cdc3b
*** 1120,1125 ****
55cdc3b
--- 1120,1126 ----
55cdc3b
  	parent = menu;
55cdc3b
  	menu = menu->children;
55cdc3b
      }
55cdc3b
+     vim_free(path_name);
55cdc3b
  
55cdc3b
      /* Now we have found the matching menu, and we list the mappings */
55cdc3b
  						    /* Highlight title */
55cdc3b
*** ../vim-7.2.001/src/version.c	Sun Aug 17 23:01:21 2008
55cdc3b
--- src/version.c	Sun Aug 17 23:42:53 2008
55cdc3b
***************
55cdc3b
*** 678,679 ****
55cdc3b
--- 678,681 ----
55cdc3b
  {   /* Add new patch number below this line */
55cdc3b
+ /**/
55cdc3b
+     2,
55cdc3b
  /**/
55cdc3b
55cdc3b
-- 
55cdc3b
ARTHUR:       You are indeed brave Sir knight, but the fight is mine.
55cdc3b
BLACK KNIGHT: Had enough?
55cdc3b
ARTHUR:       You stupid bastard.  You havn't got any arms left.
55cdc3b
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
55cdc3b
55cdc3b
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
55cdc3b
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
55cdc3b
\\\        download, build and distribute -- http://www.A-A-P.org        ///
55cdc3b
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///