mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #20440: More use of Py_SETREF.
This patch is manually crafted and contains changes that couldn't be handled automatically.
This commit is contained in:
parent
4a1e70fc31
commit
191321d11b
7 changed files with 39 additions and 58 deletions
|
@ -524,10 +524,10 @@ PyObject* _pysqlite_query_execute(pysqlite_Cursor* self, int multiple, PyObject*
|
|||
|
||||
if (self->statement) {
|
||||
(void)pysqlite_statement_reset(self->statement);
|
||||
Py_DECREF(self->statement);
|
||||
}
|
||||
|
||||
self->statement = (pysqlite_Statement*)pysqlite_cache_get(self->connection->statement_cache, func_args);
|
||||
Py_SETREF(self->statement,
|
||||
(pysqlite_Statement *)pysqlite_cache_get(self->connection->statement_cache, func_args));
|
||||
Py_DECREF(func_args);
|
||||
|
||||
if (!self->statement) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue