Artifacts Associated With Ticket 477198ffffffffffffffffffffffffffffffffff
Ticket change [153b811f9e] (rid 124535) by nobody on 2001-11-01 16:56:59:
- assignee initialized to: "hobbs"
- cmimetype initialized to: "text/plain"
- comment initialized to:
It seems that the ::http::geturl command leaks memory in the Win32 version of TCL 8.3.4. This was not the case in TCL 8.3.3. The attached file shows this behavior; source it in tclsh83 and observe the memory allocation grow in Task Manager.
- foundin initialized to: "obsolete: 8.3.4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "29. http Package"
- title initialized to: "::http::geturl leaks memory on Win32"
- type initialized to: "Bug"
Ticket change [c05d1ffe71] (rid 102387) by nobody on 2001-11-02 00:00:47:
- icomment:
Logged In: NO Seems like the file upload didn't take. Since the example is fairly short, I'm attaching it here. Commenting out the geturl call results in no memory being leaked. package require http ::http::config -useragent "Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.5) Gecko/20011011" set url "http://www.usps.gov/cgi-bin/zip4/ctystzip2" set zip 1000 while { $zip < 100000 } { set zipcode $zip if { [string length $zipcode] < 5 } { set zipcode "0$zipcode" } puts "$zipcode" set query [::http::formatQuery ctystzip $zipcode] set http [::http::geturl $url -query $query] incr zip } - login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Ticket change [421c371a69] (rid 116304) by hobbs on 2001-11-02 00:05:47:
- closedate changed to: "2001-11-01T17:05:47"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 Please note that ::http::geturl requires that the returned token is eventually freed with ::http::cleanup (when you no longer need that information about the connection). This is in the docs.
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "hobbs"