Karsten Hopp e08400
To: vim_dev@googlegroups.com
Karsten Hopp e08400
Subject: Patch 7.4.916
Karsten Hopp e08400
Fcc: outbox
Karsten Hopp e08400
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp e08400
Mime-Version: 1.0
Karsten Hopp e08400
Content-Type: text/plain; charset=UTF-8
Karsten Hopp e08400
Content-Transfer-Encoding: 8bit
Karsten Hopp e08400
------------
Karsten Hopp e08400
Karsten Hopp e08400
Patch 7.4.916
Karsten Hopp e08400
Problem:    When running out of memory while copying a dict memory may be
Karsten Hopp e08400
            freed twice. (ZyX)
Karsten Hopp e08400
Solution:   Do not call the garbage collector when running out of memory.
Karsten Hopp e08400
Files:      src/misc2.c
Karsten Hopp e08400
Karsten Hopp e08400
Karsten Hopp e08400
*** ../vim-7.4.915/src/misc2.c	2015-09-29 12:08:39.333321460 +0200
Karsten Hopp e08400
--- src/misc2.c	2015-11-10 19:00:23.267871297 +0100
Karsten Hopp e08400
***************
Karsten Hopp e08400
*** 952,960 ****
Karsten Hopp e08400
  
Karsten Hopp e08400
  	clear_sb_text();	      /* free any scrollback text */
Karsten Hopp e08400
  	try_again = mf_release_all(); /* release as many blocks as possible */
Karsten Hopp e08400
- #ifdef FEAT_EVAL
Karsten Hopp e08400
- 	try_again |= garbage_collect(); /* cleanup recursive lists/dicts */
Karsten Hopp e08400
- #endif
Karsten Hopp e08400
  
Karsten Hopp e08400
  	releasing = FALSE;
Karsten Hopp e08400
  	if (!try_again)
Karsten Hopp e08400
--- 952,957 ----
Karsten Hopp e08400
*** ../vim-7.4.915/src/version.c	2015-11-10 17:50:20.717430483 +0100
Karsten Hopp e08400
--- src/version.c	2015-11-10 19:00:39.775708047 +0100
Karsten Hopp e08400
***************
Karsten Hopp e08400
*** 743,744 ****
Karsten Hopp e08400
--- 743,746 ----
Karsten Hopp e08400
  {   /* Add new patch number below this line */
Karsten Hopp e08400
+ /**/
Karsten Hopp e08400
+     916,
Karsten Hopp e08400
  /**/
Karsten Hopp e08400
Karsten Hopp e08400
-- 
Karsten Hopp e08400
I AM THANKFUL...
Karsten Hopp e08400
...for the taxes that I pay because it means that I am employed.
Karsten Hopp e08400
Karsten Hopp e08400
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp e08400
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp e08400
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp e08400
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///