diff options
author | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2021-08-03 21:10:29 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2021-08-03 21:10:29 +0530 |
commit | 1e0e6d656db9dfa12ef7eb67976385d3deb0d4ff (patch) | |
tree | 6f9fde4d733f9827fb3c3a888f8b58a459be0b7d | |
parent | 5f9b78fe35d08739b6da1e5b356786d41116c108 (diff) | |
download | glibc-1e0e6d656db9dfa12ef7eb67976385d3deb0d4ff.zip glibc-1e0e6d656db9dfa12ef7eb67976385d3deb0d4ff.tar.gz glibc-1e0e6d656db9dfa12ef7eb67976385d3deb0d4ff.tar.bz2 |
iconv_charmap: Close output file when done
Reviewed-by: Arjun Shankar <arjun@redhat.com>
-rw-r--r-- | iconv/iconv_charmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/iconv/iconv_charmap.c b/iconv/iconv_charmap.c index e2d53fe..a8b6b56 100644 --- a/iconv/iconv_charmap.c +++ b/iconv/iconv_charmap.c @@ -234,6 +234,8 @@ charmap_conversion (const char *from_code, struct charmap_t *from_charmap, while (++remaining < argc); /* All done. */ + if (output != stdout) + fclose (output); free_table (cvtbl); return status; } |