summaryrefslogtreecommitdiff
path: root/src/if_py_both.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-29 23:07:44 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-29 23:07:44 +0200
commitde19b745eee06a8a204988ae9989d97143caece9 (patch)
treec2c3333817621f793199120b6e40f67602b674e0 /src/if_py_both.h
parentcf070112ca2a6ac9ec5466be1cdc667f6abe8fd0 (diff)
downloadvim-git-de19b745eee06a8a204988ae9989d97143caece9.tar.gz
patch 8.2.1093: Python: double free when adding item to dict failsv8.2.1093
Problem: Python: double free when adding item to dict fails. Solution: Remove vim_free() call.
Diffstat (limited to 'src/if_py_both.h')
-rw-r--r--src/if_py_both.h1
1 files changed, 0 insertions, 1 deletions
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);