diff options
author | Erlend Egeberg Aasland <erlend.aasland@innova.no> | 2021-08-25 13:57:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-25 13:57:54 (GMT) |
commit | a3c11cebf174e0c822eda8c545f7548269ce7a25 (patch) | |
tree | dfb37ffae9b19eeedd214db0736bb17c56064964 /Modules | |
parent | 15d50d7ed8afd3ab26b00210b5b4feaaadd5af51 (diff) | |
download | cpython-a3c11cebf174e0c822eda8c545f7548269ce7a25.zip cpython-a3c11cebf174e0c822eda8c545f7548269ce7a25.tar.gz cpython-a3c11cebf174e0c822eda8c545f7548269ce7a25.tar.bz2 |
bpo-27334: Fix reference leak introduced by GH-26202 (GH-27942)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_sqlite/connection.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c index 1bc0455..19d30d2 100644 --- a/Modules/_sqlite/connection.c +++ b/Modules/_sqlite/connection.c @@ -1807,6 +1807,7 @@ pysqlite_connection_exit_impl(pysqlite_Connection *self, PyObject *exc_type, _PyErr_ChainExceptions(exc, val, tb); } else { + Py_DECREF(result); PyErr_Restore(exc, val, tb); } } |