99b86a7
To: vim-dev@vim.org
99b86a7
Subject: Patch 7.1.136
99b86a7
Fcc: outbox
99b86a7
From: Bram Moolenaar <Bram@moolenaar.net>
99b86a7
Mime-Version: 1.0
99b86a7
Content-Type: text/plain; charset=ISO-8859-1
99b86a7
Content-Transfer-Encoding: 8bit
99b86a7
------------
99b86a7
99b86a7
Patch 7.1.136
99b86a7
Problem:    Memory leak when using Ruby syntax highlighting. (Dominique Pelle)
99b86a7
Solution:   Free the contained-in list.
99b86a7
Files:	    src/syntax.c
99b86a7
99b86a7
99b86a7
*** ../vim-7.1.135/src/syntax.c	Thu Aug 30 19:36:52 2007
99b86a7
--- src/syntax.c	Sun Oct  7 15:10:54 2007
99b86a7
***************
99b86a7
*** 3354,3359 ****
99b86a7
--- 3354,3360 ----
99b86a7
      {
99b86a7
  	vim_free(SYN_ITEMS(buf)[i].sp_cont_list);
99b86a7
  	vim_free(SYN_ITEMS(buf)[i].sp_next_list);
99b86a7
+ 	vim_free(SYN_ITEMS(buf)[i].sp_syn.cont_in_list);
99b86a7
      }
99b86a7
  }
99b86a7
  
99b86a7
*** ../vim-7.1.135/src/version.c	Wed Oct  3 14:30:54 2007
99b86a7
--- src/version.c	Sun Oct  7 15:20:22 2007
99b86a7
***************
99b86a7
*** 668,669 ****
99b86a7
--- 668,671 ----
99b86a7
  {   /* Add new patch number below this line */
99b86a7
+ /**/
99b86a7
+     136,
99b86a7
  /**/
99b86a7
99b86a7
-- 
99b86a7
Every engineer dreams about saving the universe and having sex with aliens.
99b86a7
This is much more glamorous than the real life of an engineer, which consists
99b86a7
of hiding from the universe and having sex without the participation of other
99b86a7
life forms.                     (Scott Adams - The Dilbert principle)
99b86a7
99b86a7
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
99b86a7
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
99b86a7
\\\        download, build and distribute -- http://www.A-A-P.org        ///
99b86a7
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///