Skip to content

Commit c95b55c

Browse files
committed
return null if PyTuple_New() fails on syslog.syslog
1 parent 8210ab3 commit c95b55c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Modules/syslogmodule.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ syslog_syslog(PyObject * self, PyObject * args)
196196
if (openlog_ret == NULL) {
197197
return NULL;
198198
}
199+
} else {
200+
return NULL;
199201
}
200202
}
201203

0 commit comments

Comments
 (0)