Commit 4131830c authored by Guido van Rossum's avatar Guido van Rossum

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!)
parent ac1abe0b
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment