# HG changeset patch # User Bram Moolenaar # Date 1553947205 -3600 # Node ID ab815ed87969afc3c2abcbbd4cca61e9185a9fc0 # Parent 695cec8269e496cc0faf5bb2cc275d1c3c490a3d patch 8.1.1075: function reference count wrong in Python code commit https://github.com/vim/vim/commit/de5b3800427328170574f1950ae75776e020f4e7 Author: Bram Moolenaar Date: Sat Mar 30 12:51:22 2019 +0100 patch 8.1.1075: function reference count wrong in Python code Problem: Function reference count wrong in Python code. Solution: Use "O" instead of "N" for the arguments. (Ben Jackson, closes #4188) diff --git a/src/if_py_both.h b/src/if_py_both.h --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -1210,7 +1210,7 @@ FinderFindSpec(PyObject *self, PyObject if (!(paths = Vim_GetPaths(self))) return NULL; - spec = PyObject_CallFunction(py_find_spec, "sNN", fullname, paths, target); + spec = PyObject_CallFunction(py_find_spec, "sOO", fullname, paths, target); Py_DECREF(paths); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -776,6 +776,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1075, +/**/ 1074, /**/ 1073,