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
syslog.syslog: nicer error handling
  • Loading branch information
noamcohen97 committed Jul 26, 2022
commit b507a03c63064885f3c1d3e447577f3788595492
5 changes: 2 additions & 3 deletions Modules/syslogmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,10 @@ syslog_syslog(PyObject * self, PyObject * args)
if ((openargs = PyTuple_New(0))) {
Comment thread
noamcohen97 marked this conversation as resolved.
PyObject *openlog_ret = syslog_openlog(self, openargs, NULL);
Py_DECREF(openargs);
if (openlog_ret != NULL) {
Py_DECREF(openlog_ret);
} else {
if (openlog_ret == NULL) {
return NULL;
}
Py_DECREF(openlog_ret);
} else {
Comment thread
noamcohen97 marked this conversation as resolved.
Outdated
return NULL;
}
Expand Down