From: Mo DeJong Date: Fri, 4 May 2001 00:34:48 +0000 (+0000) Subject: lex.c (java_new_lexer): Call iconv_close on temp handle used to check for byte swap. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4def8930da508758fa7e64c6d8fb9491ed23ad2e;p=gcc.git lex.c (java_new_lexer): Call iconv_close on temp handle used to check for byte swap. 2001-05-03 Mo DeJong * lex.c (java_new_lexer): Call iconv_close on temp handle used to check for byte swap. (http://gcc.gnu.org/ml/java-patches/2001-q2/msg00185.html ) From-SVN: r41818 --- diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 1f53bebc2c5..1831e2d8301 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2001-05-03 Mo DeJong + + * lex.c (java_new_lexer): Call iconv_close on temp handle used to + check for byte swap. + 2001-05-02 Kaveh R. Ghazi * decl.c: NULL_PTR -> NULL. diff --git a/gcc/java/lex.c b/gcc/java/lex.c index 0bf6d7a1ff5..28a73e3874b 100644 --- a/gcc/java/lex.c +++ b/gcc/java/lex.c @@ -269,6 +269,7 @@ java_new_lexer (finput, encoding) 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);