summaryrefslogtreecommitdiff
path: root/c/ffi_obj.c
diff options
context:
space:
mode:
authorSergey Vorfolomeev <sergey.vorfolomeev@vmssoftware.com>2021-04-09 08:29:05 +0500
committerSergey Vorfolomeev <sergey.vorfolomeev@vmssoftware.com>2021-04-09 08:29:05 +0500
commitc48fc339035511967023aa9783ce8afc1c00a492 (patch)
treea59352e46c3497219973c15158cd1231876099a9 /c/ffi_obj.c
parent836a60368633def79b7fe439be845f5272f4bc9e (diff)
parentf17762f93b1f882554b6fe12c8271f907aebf6ad (diff)
downloadcffi-openvms.tar.gz
merge default to 'openvms'openvms
changed: .hgtags c/_cffi_backend.c c/ffi_obj.c c/test_c.py cffi/__init__.py cffi/_embedding.h cffi/recompiler.py cffi/verifier.py doc/source/conf.py doc/source/installation.rst doc/source/whatsnew.rst setup.py setup_base.py testing/cffi0/test_ffi_backend.py testing/cffi0/test_version.py testing/cffi1/test_re_python.py
Diffstat (limited to 'c/ffi_obj.c')
-rw-r--r--c/ffi_obj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/ffi_obj.c b/c/ffi_obj.c
index 05c3a6d..f154146 100644
--- a/c/ffi_obj.c
+++ b/c/ffi_obj.c
@@ -1070,10 +1070,10 @@ static PyObject *ffi_init_once(FFIObject *self, PyObject *args, PyObject *kwds)
if (res != NULL) {
tup = PyTuple_Pack(2, Py_True, res);
if (tup == NULL || PyDict_SetItem(cache, tag, tup) < 0) {
- Py_XDECREF(tup);
Py_DECREF(res);
res = NULL;
}
+ Py_XDECREF(tup);
}
}