| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 440480d commit 6aa8dff
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -924,7 +924,6 @@ _PyPegen_set_syntax_error_metadata(Parser *p) { | |||
| 924 | 924 | the_source // N gives ownership to metadata | |
| 925 | 925 | ); | |
| 926 | 926 | if (!metadata) { | |
| 927 | - Py_DECREF(the_source); | ||
| 928 | 927 | PyErr_Clear(); | |
| 929 | 928 | return; | |
| 930 | 929 | } | |
@@ -1026,8 +1025,8 @@ _PyPegen_run_parser_from_file_pointer(FILE *fp, int start_rule, PyObject *filena | |||
| 1026 | 1025 | ||
| 1027 | 1026 | if (tok->fp_interactive && tok->interactive_src_start && result && interactive_src != NULL) { | |
| 1028 | 1027 | *interactive_src = PyUnicode_FromString(tok->interactive_src_start); | |
| 1029 | - if (!interactive_src || _PyArena_AddPyObject(arena, *interactive_src) < 0) { | ||
| 1030 | - Py_XDECREF(interactive_src); | ||
| 1028 | + if (!*interactive_src || _PyArena_AddPyObject(arena, *interactive_src) < 0) { | ||
| 1029 | + Py_XDECREF(*interactive_src); | ||
| 1031 | 1030 | result = NULL; | |
| 1032 | 1031 | goto error; | |
| 1033 | 1032 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments