<i>::http::geturl leaks memory on Win32</i> status still Open with 4 other changes
by
.
D 2001-11-02T00:00:47
J icomment Logged\sIn:\sNO\s\n\nSeems\slike\sthe\sfile\supload\sdidn't\stake.\sSince\sthe\sexample\sis\nfairly\sshort,\sI'm\sattaching\sit\shere.\sCommenting\sout\sthe\ngeturl\scall\sresults\sin\sno\smemory\sbeing\sleaked.\n\npackage\srequire\shttp\n\n::http::config\s-useragent\s"Mozilla/5.0\s(Windows;\sU;\nWinNT4.0;\sen-US;\srv:0.9.5)\sGecko/20011011"\n\nset\surl\s"http://www.usps.gov/cgi-bin/zip4/ctystzip2"\n\nset\szip\s1000\nwhile\s{\s$zip\s<\s100000\s}\s{\nset\szipcode\s$zip\nif\s{\s[string\slength\s$zipcode]\s<\s5\s}\s{\sset\szipcode\s"0$zipcode"\s}\nputs\s"$zipcode"\n\nset\squery\s[::http::formatQuery\sctystzip\s$zipcode]\nset\shttp\s\s[::http::geturl\s$url\s-query\s$query]\n\nincr\szip\n}\n\n
J login nobody
J mimetype text/plain
J username nobody
K 477198ffffffffffffffffffffffffffffffffff
U nobody
Z 2610371175d13b8ffeebedf6beadbc1e