Problem: Test 86 fails under ASAN.
Solution: Fix that an item was added to a dictionary twice.
PyObject *todecref;
char_u *key;
dictitem_T *di;
+ hashitem_T *hi;
if (!(fast = PySequence_Fast(item, "")))
{
Py_DECREF(fast);
- if (dict_add(dict, di) == FAIL)
+ hi = hash_find(&dict->dv_hashtab, di->di_key);
+ if (!HASHITEM_EMPTY(hi) || dict_add(dict, di) == FAIL)
{
RAISE_KEY_ADD_FAIL(di->di_key);
Py_DECREF(iterator);
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1283,
/**/
1282,
/**/