[Python-bugs-list] [ python-Bugs-745055 ] Memory leak in _tkinter.c/Tkapp_SplitList()

SourceForge.net noreply@sourceforge.net
Wed, 28 May 2003 14:47:34 -0700


Bugs item #745055, was opened at 2003-05-28 17:55
Message generated for change (Comment added) made by leppako
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=745055&group_id=5470

Category: Tkinter
Group: None
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Toni Leppäkorpi (leppako)
Assigned to: Nobody/Anonymous (nobody)
Summary: Memory leak in _tkinter.c/Tkapp_SplitList()

Initial Comment:
Splitlist() function leaks any string given to it as a
parameter.
This code should reproduce the problem:

import Tkinter
b = Tkinter.Button(text='Leak',
    command=lambda:b.tk.splitlist('1 2 {3 4} 5 '*10000))
b.pack()
b.mainloop()


----------------------------------------------------------------------

>Comment By: Toni Leppäkorpi (leppako)
Date: 2003-05-28 21:47

Message:
Logged In: YES 
user_id=788774

Good work nnorwitz. Problem solved.

----------------------------------------------------------------------

Comment By: Neal Norwitz (nnorwitz)
Date: 2003-05-28 18:34

Message:
Logged In: YES 
user_id=33168

Funny, I thought I had posted a patch about this.  Could you
test the attached patch which is against the CVS version? 
It shouldn't be hard to apply to 2.2.2/2.2.3 either.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=745055&group_id=5470