This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Missing call to iconv_close.
- To: java-patches at gcc dot gnu dot org
- Subject: Missing call to iconv_close.
- From: Mo DeJong <mdejong at cygnus dot com>
- Date: Thu, 3 May 2001 14:52:35 -0700 (PDT)
Here is a quick patch that closes an iconv handle
that seems to have been left open in gcc/java/lex.c.
Mo
2001-05-03 Mo DeJong <mdejong@redhat.com>
* lex.c (java_new_lexer): Call iconv_close
on temp handle used to check for byte swap.
diff -u -r1.60.2.3 lex.c
--- lex.c 2001/03/23 05:14:35 1.60.2.3
+++ lex.c 2001/05/03 21:49:55
@@ -269,6 +269,7 @@
outc = 2;
r = iconv (handle, (const char **) &inp, &inc, &outp, &outc);
+ iconv_close (handle);
/* Conversion must be complete for us to use the result. */
if (r != (size_t) -1 && inc == 0 && outc == 0)
need_byteswap = (result != 0xfeff);