nacho 01/10/05 13:55:25 Modified: src/share/org/apache/tomcat/util/collections SimplePool.java Log: The current code can delay garbage collection for objects that are removed from the pool but not returned. Submiitted by David Schreibman [DSchreibman at eTranslate.com] Revision Changes Path 1.7 +1 -0 jakarta-tomcat/src/share/org/apache/tomcat/util/collections/SimplePool.java Index: SimplePool.java =================================================================== RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/collections/SimplePool.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- SimplePool.java 2001/07/19 05:50:46 1.6 +++ SimplePool.java 2001/10/05 20:55:25 1.7 @@ -131,6 +131,7 @@ synchronized( lock ) { if( current >= 0 ) { item = pool[current]; + pool[current] = null; current -= 1; } if( debug > 0 )