mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Issue #20437: Fixed 22 potential bugs when deleting objects references.
This commit is contained in:
commit
dfe98a102e
15 changed files with 34 additions and 63 deletions
|
|
@ -463,8 +463,7 @@ zlib_compressobj_impl(PyModuleDef *module, int level, int method, int wbits, int
|
|||
}
|
||||
|
||||
error:
|
||||
Py_XDECREF(self);
|
||||
self = NULL;
|
||||
Py_CLEAR(self);
|
||||
success:
|
||||
return (PyObject*)self;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue