Overview
| Artifact ID: | b00abc35223e61ae156ea7baa5873e9972951615 |
|---|---|
| Ticket: | 414910ffffffffffffffffffffffffffffffffff
Win2000, putenv, not freeing memory |
| User & Date: | davygrvy on 2002-05-28 04:53:04 |
Changes
- icomment:
Logged In: YES user_id=7549 Apply this to stock tclhttpd, and slam it with a few hundred hits, then close the server down and read through the onexit dump. Index: doc.tcl ============================================= ====================== RCS file: /cvsroot/tclhttpd/tclhttpd/lib/doc.tcl,v retrieving revision 1.43 diff -c -r1.43 doc.tcl *** doc.tcl9 Jul 2001 23:05:19 -00001.43 --- doc.tcl27 May 2002 21:51:00 -0000 *************** *** 858,864 **** upvar #0 Httpd$sock data set Doc(errorUrl) $data(url) set Doc(errorInfo) $ei;# For subst ! CountName $Doc(errorUrl) error DocSubstSystemFile $sock error 500 [protect_text $ei] } --- 858,864 ---- upvar #0 Httpd$sock data set Doc(errorUrl) $data(url) set Doc(errorInfo) $ei;# For subst ! CountName $Doc(errorUrl) errors DocSubstSystemFile $sock error 500 [protect_text $ei] } *************** *** 1118,1125 **** --- 1118,1139 ---- # Populate the global "env" array similarly to the CGI environment Cgi_SetEnv $sock $filename pass + + ### DAVYGRVY LEAK TESTING + global davygrvy + if {![info exist davygrvy]} { + set davygrvy -1 + memory onexit onexit.txt + } + memory tag "envLeak[incr davygrvy]" + ### DAVYGRVY LEAK TESTING + interp eval $interp [list uplevel #0 \ [list array set env [array get pass]]] + + ### DAVYGRVY LEAK TESTING + memory tag "" + ### DAVYGRVY LEAK TESTING if {0} { # Duplicate this in the "cgienv" array. - login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"