bpo-27334: Fix reference leak introduced by GH-26202 (GH-27942)

This commit is contained in:
Erlend Egeberg Aasland 2021-08-25 15:57:54 +02:00 committed by GitHub
parent 15d50d7ed8
commit a3c11cebf1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
}