File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -2005,10 +2005,26 @@ pysqlite_connection_iterdump_impl(pysqlite_Connection *self,
2005
2005
}
2006
2006
PyObject * args [2 ] = {(PyObject * )self , filter };
2007
2007
PyObject * kwnames = PyTuple_New (1 );
2008
- PyTuple_SET_ITEM (kwnames , 0 , PyUnicode_FromString ("filter" ));
2008
+ PyObject * py_filter = NULL ;
2009
+
2010
+ if (!kwnames ) {
2011
+ goto error ;
2012
+ }
2013
+ py_filter = PyUnicode_FromString ("filter" );
2014
+ if (!py_filter ) {
2015
+ goto error ;
2016
+ }
2017
+ PyTuple_SET_ITEM (kwnames , 0 , py_filter );
2018
+
2009
2019
PyObject * retval = PyObject_Vectorcall (iterdump , args , 1 , kwnames );
2010
2020
Py_DECREF (iterdump );
2011
2021
return retval ;
2022
+
2023
+ error :
2024
+ Py_DECREF (iterdump );
2025
+ Py_DECREF (args );
2026
+ Py_XDECREF (kwnames );
2027
+ return NULL ;
2012
2028
}
2013
2029
2014
2030
/*[clinic input]
You can’t perform that action at this time.
0 commit comments