mirror of
https://github.com/python/cpython.git
synced 2025-09-19 07:00:59 +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;
|
break;
|
||||||
}
|
}
|
||||||
w = Py_BuildValue("(sO)", msg, v);
|
w = Py_BuildValue("(sO)", msg, v);
|
||||||
|
Py_XDECREF(v);
|
||||||
PyErr_SetObject(errtype, w);
|
PyErr_SetObject(errtype, w);
|
||||||
Py_XDECREF(w);
|
Py_XDECREF(w);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue