Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Address review: check PyLong_FromLong ret value
  • Loading branch information
Erlend E. Aasland committed May 25, 2021
commit 0067cefd9b75c96c5be80b997136e84e652d7d18
5 changes: 4 additions & 1 deletion Modules/_sqlite/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,11 @@ static PyObject *
new_statement_cache(pysqlite_Connection *self, int maxsize)
{
PyObject *args[] = { PyLong_FromLong(maxsize), };
Comment thread
erlend-aasland marked this conversation as resolved.
Outdated
if (args[0] == NULL) {
return NULL;
}
PyObject *inner = PyObject_Vectorcall(_lru_cache, args, 1, NULL);
Py_XDECREF(args[0]);
Py_DECREF(args[0]);
if (inner == NULL) {
return NULL;
}
Expand Down