Skip to content

Commit 98f1a9d

Browse files
author
Erlend E. Aasland
committed
Explain Py_DECREF of converted arguments
1 parent af0fc7e commit 98f1a9d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Modules/_sqlite/connection.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ pysqlite_connection_init_impl(pysqlite_Connection *self,
128128
(uri ? SQLITE_OPEN_URI : 0), NULL);
129129
Py_END_ALLOW_THREADS
130130

131-
Py_DECREF(database_obj);
131+
Py_DECREF(database_obj); // needed bco. the AC FSConverter
132132

133133
if (rc != SQLITE_OK) {
134134
_pysqlite_seterror(self->db);

Modules/_sqlite/module.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ pysqlite_connect_impl(PyObject *module, PyObject *database, double timeout,
9999
timeout, detect_types,
100100
isolation_level, check_same_thread,
101101
factory, cached_statements, uri);
102-
Py_DECREF(database);
102+
Py_DECREF(database); // needed bco. the AC FSConverter
103103
Py_DECREF(isolation_level);
104104
return res;
105105
}

0 commit comments

Comments
 (0)