changeset 21083:cc4914752841 v8.2.1093

patch 8.2.1093: Python: double free when adding item to dict fails Commit: https://github.com/vim/vim/commit/de19b745eee06a8a204988ae9989d97143caece9 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 29 23:07:44 2020 +0200 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.
author Bram Moolenaar <Bram@vim.org>
date Mon, 29 Jun 2020 23:15:04 +0200
parents 8da85d1250be
children 0768e80dc778
files src/if_py_both.h src/version.c
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1093,
+/**/
     1092,
 /**/
     1091,