Each time a tcl plugin is loaded, Windows Task Manager reports that the memory usage of iexplore.exe increases by about 4 megabytes.
How to reproduce:
1. Run the attached simple webserver which serves up a small tcl plugin containing two labels.
2. Browse to it with Internet Explorer: http://<hostname>:8002/
3. Open Windows Task Manager
4. Observe the "Mem Usage" of iexplore.exe as you reload the page several times
Expected behavior: the Mem Usage is roughly constant
Observed behavior: the Mem Usage increases by roughly 4,000 every time the page is reloaded.
Environment: XP SP2, IE7, tclplugin 3.1
The leak does not seem to occur, or is much less severe, with XP SP2, FF3.0. However, I still suspect the leak is in the tclplugin rather than pluginhostctrl, because we tested another pluginhostctrl plugin of our own in IE and did not observe a 4M leak at each reload.
The reason that the tcl file is served as the result of a CGI is that this test program was adapted from an earlier test program for a different issue. I don't think this is relevant.
To run the sample webserver on a system with Python installed, use the commandline shown in "run.sh". We tested with the webserver running on Linux, but it seems unlikely that the webserver's platform is relevant.
python webserver to demonstrate the problem