diff --git a/src/if_py_both.h b/src/if_py_both.h index f627f67af8..d828358e7f 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -818,21 +818,21 @@ DictionaryAssItem(PyObject *self, PyObject *keyObject, PyObject *valObject) if (valObject == NULL) { + hashitem_T *hi; + if (di == NULL) { PyErr_SetString(PyExc_IndexError, _("no such key in dictionary")); return -1; } - hashitem_T *hi = hash_find(&d->dv_hashtab, di->di_key); + hi = hash_find(&d->dv_hashtab, di->di_key); hash_remove(&d->dv_hashtab, hi); dictitem_free(di); return 0; } if (ConvertFromPyObject(valObject, &tv) == -1) - { return -1; - } if (di == NULL) { diff --git a/src/version.c b/src/version.c index 58bb4732c0..9ab5188f87 100644 --- a/src/version.c +++ b/src/version.c @@ -714,6 +714,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 578, /**/ 577, /**/