From: Bram Moolenaar Date: Mon, 29 Jun 2020 21:07:44 +0000 (+0200) Subject: patch 8.2.1093: Python: double free when adding item to dict fails X-Git-Tag: v8.2.1093 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=de19b745eee06a8a204988ae9989d97143caece9;p=vim patch 8.2.1093: Python: double free when adding item to dict fails Problem: Python: double free when adding item to dict fails. Solution: Remove vim_free() call. --- diff --git a/src/if_py_both.h b/src/if_py_both.h index e262d1f75..44b4baffe 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -1913,7 +1913,6 @@ DictionaryAssItem( if (dict_add(dict, di) == FAIL) { - vim_free(di); dictitem_free(di); RAISE_KEY_ADD_FAIL(key); Py_XDECREF(todecref); diff --git a/src/version.c b/src/version.c index cac669e42..369724830 100644 --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1093, /**/ 1092, /**/