| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -683,7 +683,11 @@ record_eval(PyThreadState *tstate, struct _PyInterpreterFrame *f, int exc) | |||
| 683 | 683 | assert(module != NULL); | |
| 684 | 684 | module_state *state = get_module_state(module); | |
| 685 | 685 | Py_DECREF(module); | |
| 686 | - PyList_Append(state->record_list, ((PyFunctionObject *)f->f_funcobj)->func_name); | ||
| 686 | + int res = PyList_Append(state->record_list, | ||
| 687 | + ((PyFunctionObject *)f->f_funcobj)->func_name); | ||
| 688 | + if (res < 0) { | ||
| 689 | + return NULL; | ||
| 690 | + } | ||
| 687 | 691 | } | |
| 688 | 692 | return _PyEval_EvalFrameDefault(tstate, f, exc); | |
| 689 | 693 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments