diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-10-23 19:40:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-23 19:40:54 (GMT) |
commit | df13df41a25765d8a39a77220691698498e758d4 (patch) | |
tree | 8b1f3021333df1a7c91ea183123afa88b758f2d9 /Modules | |
parent | 9f3ed3e213b30059087d059a7d1d3b2527fa8654 (diff) | |
download | cpython-df13df41a25765d8a39a77220691698498e758d4.zip cpython-df13df41a25765d8a39a77220691698498e758d4.tar.gz cpython-df13df41a25765d8a39a77220691698498e758d4.tar.bz2 |
bpo-34794: Fix a leak in Tkinter. (GH-10025)
Based on the investigation by Xiang Zhang.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_tkinter.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 93d4dbc..fa26859 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -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; } { |