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
|
@ -73,6 +73,9 @@ static SHA1object *
|
|||
newSHA1object(SHA1State *st)
|
||||
{
|
||||
SHA1object *sha = (SHA1object *)PyObject_GC_New(SHA1object, st->sha1_type);
|
||||
if (sha == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
sha->lock = NULL;
|
||||
PyObject_GC_Track(sha);
|
||||
return sha;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue