mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
[3.13] gh-142724: fix error path in _PyPegen_raise_tokenizer_init_error (GH-142725) (#142727)
Co-authored-by: AZero13 <gfunni234@gmail.com>
This commit is contained in:
parent
e72ee65adf
commit
13d9b0c1c4
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ _PyPegen_raise_tokenizer_init_error(PyObject *filename)
|
|||
|
||||
tuple = PyTuple_Pack(2, errstr, tmp);
|
||||
Py_DECREF(tmp);
|
||||
if (!value) {
|
||||
if (!tuple) {
|
||||
goto error;
|
||||
}
|
||||
PyErr_SetObject(PyExc_SyntaxError, tuple);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue