bpo-34794: Fix a leak in Tkinter. (GH-10025)

Based on the investigation by Xiang Zhang.
This commit is contained in:
Serhiy Storchaka 2018-10-23 22:40:54 +03:00 committed by GitHub
parent 9f3ed3e213
commit df13df41a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -0,0 +1,2 @@
Fixed a leak in Tkinter when pass the Python wrapper around Tcl_Obj back to
Tcl/Tk.

View File

@ -1101,9 +1101,7 @@ AsObj(PyObject *value)
}
if (PyTclObject_Check(value)) {
Tcl_Obj *v = ((PyTclObject*)value)->value;
Tcl_IncrRefCount(v);
return v;
return ((PyTclObject*)value)->value;
}
{