mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
[3.13] gh-129345: null check for indent syslogmodule (GH-129348) (#129442)
gh-129345: null check for indent syslogmodule (GH-129348)
(cherry picked from commit 25cf79a082
)
Co-authored-by: Burkov Egor <xwooffie@gmail.com>
This commit is contained in:
parent
9120330354
commit
de27372234
2 changed files with 2 additions and 1 deletions
|
@ -176,7 +176,7 @@ syslog_openlog_impl(PyObject *module, PyObject *ident, long logopt,
|
|||
}
|
||||
}
|
||||
if (PySys_Audit("syslog.openlog", "Oll", ident ? ident : Py_None, logopt, facility) < 0) {
|
||||
Py_DECREF(ident);
|
||||
Py_XDECREF(ident);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue