This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH for 14689 / missing closedir


Hi,

The jcf-path.c is missing a closedir() in its directory handling.

I bootstrapped this on powerpc-gnu-linux on 3.4. branch.

Ciao, Marcus

2004-03-23  Marcus Meissner  <meissner@suse.de>

	PR 14689
        * gcc/java/jcf-path.c (jcf_path_extdirs_arg): Add missing closedir().


Index: gcc/java/jcf-path.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/jcf-path.c,v
retrieving revision 1.29
diff -u -p -r1.29 jcf-path.c
--- gcc/java/jcf-path.c	3 Jul 2003 04:24:01 -0000	1.29
+++ gcc/java/jcf-path.c	23 Mar 2004 08:36:21 -0000
@@ -371,6 +371,8 @@ jcf_path_extdirs_arg (const char *cp)
 			add_entry (&extensions, name, 0);
 		      }
 		  }
+		if (dirp) 
+		  closedir (dirp);
 	      }
 
 	      if (! *endp)

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]