Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8b6d475

Browse files
authored
gh-121791: Check forNULL inMethodDescriptor2_new in_testcapi (#121792)
1 parent1755df7 commit8b6d475

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎Modules/_testcapi/vectorcall.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,9 @@ static PyObject *
348348
MethodDescriptor2_new(PyTypeObject*type,PyObject*args,PyObject*kw)
349349
{
350350
MethodDescriptor2Object*op=PyObject_New(MethodDescriptor2Object,type);
351+
if (op==NULL) {
352+
returnNULL;
353+
}
351354
op->base.vectorcall=NULL;
352355
op->vectorcall=MethodDescriptor_vectorcall;
353356
return (PyObject*)op;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp