| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 537b6ca commit 4b250fc
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -702,6 +702,8 @@ static string | |||
| 702 | 702 | new_type_comment(const char *s, struct compiling *c) | |
| 703 | 703 | { | |
| 704 | 704 | PyObject *res = PyUnicode_DecodeUTF8(s, strlen(s), NULL); | |
| 705 | + if (res == NULL) | ||
| 706 | + return NULL; | ||
| 705 | 707 | if (PyArena_AddPyObject(c->c_arena, res) < 0) { | |
| 706 | 708 | Py_DECREF(res); | |
| 707 | 709 | return NULL; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments