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:
@@ -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);
|
||||||
|
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user