diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-10-23 14:46:32 -0700 |
|---|---|---|
| committer | Victor Stinner <vstinner@redhat.com> | 2018-10-23 23:46:32 +0200 |
| commit | f7cefb427cbc50d89a4f19f7f334a4f5421cefd3 (patch) | |
| tree | cfc3a1d3c7a5a6aeec49d8f21b58d64ac58b8208 /Modules/_tkinter.c | |
| parent | c46f0423a42c46cf62d12c300ec36a848f8ba72c (diff) | |
| download | cpython-git-f7cefb427cbc50d89a4f19f7f334a4f5421cefd3.tar.gz | |
bpo-34794: Fix a leak in Tkinter. (GH-10025) (GH-10069)
Based on the investigation by Xiang Zhang.
(cherry picked from commit df13df41a25765d8a39a77220691698498e758d4)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Modules/_tkinter.c')
| -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 93d4dbc5f6..fa26859987 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; } { |
