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


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

Missing call to iconv_close.


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);


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