tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marcs...@apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/loader AdaptiveClassLoader.java
Date Sun, 04 Mar 2001 03:47:58 GMT
marcsaeg    01/03/03 19:47:58

  Modified:    src/share/org/apache/tomcat/loader Tag: tomcat_32
                        AdaptiveClassLoader.java
  Log:
  Explictly close ZipFile to avoid leaking file descriptors.  Bugzilla 134.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.9.2.3   +2 -1      jakarta-tomcat/src/share/org/apache/tomcat/loader/Attic/AdaptiveClassLoader.java
  
  Index: AdaptiveClassLoader.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/loader/Attic/AdaptiveClassLoader.java,v
  retrieving revision 1.9.2.2
  retrieving revision 1.9.2.3
  diff -u -r1.9.2.2 -r1.9.2.3
  --- AdaptiveClassLoader.java	2000/11/16 22:04:42	1.9.2.2
  +++ AdaptiveClassLoader.java	2001/03/04 03:47:58	1.9.2.3
  @@ -118,7 +118,7 @@
    * @author Martin Pool
    * @author Jim Heintz
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @version $Revision: 1.9.2.2 $ $Date: 2000/11/16 22:04:42 $
  + * @version $Revision: 1.9.2.3 $ $Date: 2001/03/04 03:47:58 $
    * @see java.lang.ClassLoader
    */
   public class AdaptiveClassLoader extends ClassLoader {
  @@ -807,6 +807,7 @@
                   try {
                       ZipFile zf = new ZipFile(file.getAbsolutePath());
                       ZipEntry ze = zf.getEntry(name);
  +                    zf.close();
   
                       if (ze != null) {
                           try {
  
  
  

Mime
View raw message