diff options
| author | AlexSm <[email protected]> | 2024-08-19 16:16:30 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-08-19 17:16:30 +0300 |
| commit | 9b567afd3339f4525feab53873592cb025b14251 (patch) | |
| tree | 5c8489f98dc5a9a10f66065055e5a401bbd14767 /contrib/tools/python3/Objects/genericaliasobject.c | |
| parent | 47bd121575c210d4bbb2dddcc2131759a694df05 (diff) | |
Library import 240819-0942 (#7994)
Co-authored-by: robot-piglet <[email protected]>
Co-authored-by: hiddenpath <[email protected]>
Co-authored-by: bulatman <[email protected]>
Co-authored-by: robot-contrib <[email protected]>
Co-authored-by: osidorkin <[email protected]>
Co-authored-by: akhropov <[email protected]>
Co-authored-by: akozhikhov <[email protected]>
Co-authored-by: orlovorlov <[email protected]>
Co-authored-by: babenko <[email protected]>
Co-authored-by: shadchin <[email protected]>
Co-authored-by: dmasloff <[email protected]>
Co-authored-by: aleksei-le <[email protected]>
Co-authored-by: coteeq <[email protected]>
Co-authored-by: dimdim11 <[email protected]>
Co-authored-by: robot-ya-builder <[email protected]>
Co-authored-by: iaz1607 <[email protected]>
Diffstat (limited to 'contrib/tools/python3/Objects/genericaliasobject.c')
| -rw-r--r-- | contrib/tools/python3/Objects/genericaliasobject.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/tools/python3/Objects/genericaliasobject.c b/contrib/tools/python3/Objects/genericaliasobject.c index 117b4e8dfb9..7f89e68340b 100644 --- a/contrib/tools/python3/Objects/genericaliasobject.c +++ b/contrib/tools/python3/Objects/genericaliasobject.c @@ -564,6 +564,10 @@ ga_getitem(PyObject *self, PyObject *item) } PyObject *res = Py_GenericAlias(alias->origin, newargs); + if (res == NULL) { + Py_DECREF(newargs); + return NULL; + } ((gaobject *)res)->starred = alias->starred; Py_DECREF(newargs); |
