------- Comment #14 from pinskia at gcc dot gnu dot org 2007-01-23 08:28 ------- Here is a better patch (with correct formating): Index: ../../gcc/java/jcf-io.c =================================================================== --- ../../gcc/java/jcf-io.c (revision 121050) +++ ../../gcc/java/jcf-io.c (working copy) @@ -134,10 +134,16 @@ { jcf_dependency_add_file (zipfile, is_system); if (read (fd, magic, 4) != 4 || GET_u4 (magic) != (JCF_u4)ZIPMAGIC) - return NULL; + { + close (fd); + return NULL; + } lseek (fd, 0L, SEEK_SET); if (read_zip_archive (zipf) != 0) - return NULL; + { + close (fd); + return NULL; + } }
SeenZipFiles = zipf; -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Component|libgcj |java GCC build triplet|hppa2.0w-hp-hpux11.11 | GCC host triplet|hppa2.0w-hp-hpux11.11 | GCC target triplet|hppa2.0w-hp-hpux11.11, | |powerpc-darwin8.5 | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30454