Skip to content

Commit a2d818a

Browse files
post-merge fixup
1 parent 8aab622 commit a2d818a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/PyEventLoop.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,8 @@
1818
*/
1919
static PyObject *eventLoopJobWrapper(PyObject *jobFn, PyObject *Py_UNUSED(_)) {
2020
PyObject *ret = PyObject_CallObject(jobFn, NULL);
21+
Py_XDECREF(ret); // don't care about its return value
2122
PyEventLoop::_locker->decCounter();
22-
if (!ret) {
23-
return NULL;
24-
}
25-
Py_DECREF(ret);
2623
if (PyErr_Occurred()) {
2724
return NULL;
2825
} else {

0 commit comments

Comments
 (0)