8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_PyEval_GetFrameLocals
ceval.c
1 parent d8d9491 commit ab44c4aCopy full SHA for ab44c4a
Python/ceval.c
@@ -2496,8 +2496,13 @@ _PyEval_GetFrameLocals(void)
2496
2497
if (PyFrameLocalsProxy_Check(locals)) {
2498
PyObject* ret = PyDict_New();
2499
+ if (ret == NULL) {
2500
+ Py_DECREF(locals);
2501
+ return NULL;
2502
+ }
2503
if (PyDict_Update(ret, locals)) {
2504
Py_DECREF(ret);
2505
2506
return NULL;
2507
}
2508
Py_DECREF(locals);
0 commit comments