forked from aniani/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.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user