mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix memory leak with SyntaxError. (The DECREF was originally hidden
inside a piece of code that was deemed reduntant; the DECREF was unfortunately *not* redundant!)
This commit is contained in:
parent
ac1abe0bfe
commit
4131830c23
1 changed files with 1 additions and 0 deletions
|
@ -1201,6 +1201,7 @@ err_input(perrdetail *err)
|
|||
break;
|
||||
}
|
||||
w = Py_BuildValue("(sO)", msg, v);
|
||||
Py_XDECREF(v);
|
||||
PyErr_SetObject(errtype, w);
|
||||
Py_XDECREF(w);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue