updated for version 7.3.005
Problem: Crash when using undotree(). (Christian Brabandt)
Solution: Increase the list reference count. Add a test for undotree()
(Lech Lorens)
diff --git a/src/eval.c b/src/eval.c
index fc01006..0f306d4 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -7075,7 +7075,7 @@
}
/*
- * Add a list entry to dictionary "d".
+ * Add a list entry to dictionary "d".
* Returns FAIL when out of memory and when key already exists.
*/
int
@@ -7097,6 +7097,7 @@
dictitem_free(item);
return FAIL;
}
+ ++list->lv_refcount;
return OK;
}