aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/lex.c')
-rw-r--r--gcc/java/lex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/java/lex.c b/gcc/java/lex.c
index 0bf6d7a..28a73e3 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);