[Zope-Checkins] CVS: Zope/lib/python/ZPublisher - HTTPRequest.py:126.96.36.199
Wed, 9 Apr 2003 10:00:59 -0400
Update of /cvs-repository/Zope/lib/python/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv6105/lib/python/ZPublisher
Fixed two leaks involving file uploads. The HTTP input stream was referenced for too long.
=== Zope/lib/python/ZPublisher/HTTPRequest.py 188.8.131.52 => 184.108.40.206 ===
--- Zope/lib/python/ZPublisher/HTTPRequest.py:220.127.116.11 Fri Feb 14 18:26:04 2003
+++ Zope/lib/python/ZPublisher/HTTPRequest.py Wed Apr 9 10:00:27 2003
@@ -134,6 +134,11 @@
+ # Clear all references to the input stream, possibly
+ # removing tempfiles.
+ self.stdin = None
+ self._file = None
# we want to clear the lazy dict here because BaseRequests don't have
# one. Without this, there's the possibility of memory leaking
# after every request.