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:
Guido van Rossum 2001-03-23 04:01:07 +00:00
parent ac1abe0bfe
commit 4131830c23

View file

@ -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);
}