mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Fix missing/incomplete NULL checks in multiple source files (#104564)
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
This commit is contained in:
parent
ae00b810d1
commit
13b5d79090
5 changed files with 20 additions and 1 deletions
|
@ -1722,6 +1722,9 @@ ZlibDecompressor__new__(PyTypeObject *cls,
|
|||
return NULL;
|
||||
}
|
||||
ZlibDecompressor *self = PyObject_New(ZlibDecompressor, cls);
|
||||
if (self == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
self->eof = 0;
|
||||
self->needs_input = 1;
|
||||
self->avail_in_real = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue