0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

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.
This commit is contained in:
Bram Moolenaar
2020-06-29 23:07:44 +02:00
parent cf070112ca
commit de19b745ee
2 changed files with 2 additions and 1 deletions

View File

@@ -1913,7 +1913,6 @@ DictionaryAssItem(
if (dict_add(dict, di) == FAIL) if (dict_add(dict, di) == FAIL)
{ {
vim_free(di);
dictitem_free(di); dictitem_free(di);
RAISE_KEY_ADD_FAIL(key); RAISE_KEY_ADD_FAIL(key);
Py_XDECREF(todecref); Py_XDECREF(todecref);

View File

@@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1093,
/**/ /**/
1092, 1092,
/**/ /**/