summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-08-25 13:57:54 (GMT)
committerGitHub <noreply@github.com>2021-08-25 13:57:54 (GMT)
commita3c11cebf174e0c822eda8c545f7548269ce7a25 (patch)
treedfb37ffae9b19eeedd214db0736bb17c56064964 /Modules
parent15d50d7ed8afd3ab26b00210b5b4feaaadd5af51 (diff)
downloadcpython-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.c1
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);
}
}