mirror of
https://github.com/python/cpython
synced 2024-10-17 03:28:38 +00:00
bpo-27334: Fix reference leak introduced by GH-26202 (GH-27942)
This commit is contained in:
parent
15d50d7ed8
commit
a3c11cebf1
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue