8000 Fix missing/incomplete NULL checks in multiple source files by chgnrdv · Pull Request #104564 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Fix missing/incomplete NULL checks in multiple source files #104564

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
May 23, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into add-missing-null-checks
  • Loading branch information
chgnrdv authored May 23, 2023
commit 37dfa058ce3a320e86cc6a12e2fa171d8ab437ff
2 changes: 2 additions & 0 deletions Modules/sha1module.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,11 @@ 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;
}
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0