[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:
Miss Islington (bot) 2025-02-04 00:37:24 +01:00 committed by GitHub
parent 9120330354
commit de27372234
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -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;
}