There was an error while loading. Please reload this page.
1 parent a5dde0f commit b1f648eCopy full SHA for b1f648e
1 file changed
Modules/syslogmodule.c
@@ -191,8 +191,14 @@ syslog_syslog(PyObject * self, PyObject * args)
191
*/
192
if ((openargs = PyTuple_New(0))) {
193
PyObject *openlog_ret = syslog_openlog(self, openargs, NULL);
194
- Py_XDECREF(openlog_ret);
195
Py_DECREF(openargs);
+ if (openlog_ret == NULL) {
196
+ return NULL;
197
+ }
198
+ Py_DECREF(openlog_ret);
199
200
+ else {
201
202
}
203
204
0 commit comments