mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #20437: Fixed 21 potential bugs when deleting objects references.
This commit is contained in:
parent
e9c31470e1
commit
505ff755d7
16 changed files with 34 additions and 63 deletions
|
@ -197,8 +197,7 @@ syslog_closelog(PyObject *self, PyObject *unused)
|
|||
{
|
||||
if (S_log_open) {
|
||||
closelog();
|
||||
Py_XDECREF(S_ident_o);
|
||||
S_ident_o = NULL;
|
||||
Py_CLEAR(S_ident_o);
|
||||
S_log_open = 0;
|
||||
}
|
||||
Py_INCREF(Py_None);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue