Skip to content

Commit 8cf51d4

Browse files
committed
goto no longer needed.
1 parent 321b3e0 commit 8cf51d4

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Modules/_sqlite/connection.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2006,18 +2006,14 @@ pysqlite_connection_iterdump_impl(pysqlite_Connection *self,
20062006
PyObject *args[2] = {(PyObject *)self, filter};
20072007
PyObject *kwnames = Py_BuildValue("(s)", "filter");
20082008
if (!kwnames) {
2009-
goto error;
2009+
Py_DECREF(iterdump);
2010+
return NULL;
20102011
}
20112012

20122013
PyObject *retval = PyObject_Vectorcall(iterdump, args, 1, kwnames);
20132014
Py_DECREF(iterdump);
20142015
Py_DECREF(kwnames);
20152016
return retval;
2016-
2017-
error:
2018-
Py_DECREF(iterdump);
2019-
Py_XDECREF(kwnames);
2020-
return NULL;
20212017
}
20222018

20232019
/*[clinic input]

0 commit comments

Comments
 (0)