Skip to content

Commit 8648357

Browse files
committed
patch 7.4.916
Problem: When running out of memory while copying a dict memory may be freed twice. (ZyX) Solution: Do not call the garbage collector when running out of memory.
1 parent 1746747 commit 8648357

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/misc2.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -952,9 +952,6 @@ lalloc(size, message)
952952

953953
clear_sb_text(); /* free any scrollback text */
954954
try_again = mf_release_all(); /* release as many blocks as possible */
955-
#ifdef FEAT_EVAL
956-
try_again |= garbage_collect(); /* cleanup recursive lists/dicts */
957-
#endif
958955

959956
releasing = FALSE;
960957
if (!try_again)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
916,
744746
/**/
745747
915,
746748
/**/

0 commit comments

Comments
 (0)