Commit b5e81aa5 authored by Guido van Rossum's avatar Guido van Rossum

Backport r56875 from py3k; double LEAVE_PYTHON when AsString() fails

in PythonCmd().
parent 95d94947
......@@ -2028,7 +2028,9 @@ PythonCmd(ClientData clientData, Tcl_Interp *interp, int argc, char *argv[])
s = AsString(res, tmp);
if (s == NULL) {
rv = PythonCmd_Error(interp);
Py_DECREF(res);
Py_DECREF(tmp);
return PythonCmd_Error(interp);
}
else {
Tcl_SetResult(Tkapp_Interp(self), s, TCL_VOLATILE);
......
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