aboutsummaryrefslogtreecommitdiff
path: root/iconv
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2021-08-03 21:10:29 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2021-08-03 21:10:29 +0530
commit1e0e6d656db9dfa12ef7eb67976385d3deb0d4ff (patch)
tree6f9fde4d733f9827fb3c3a888f8b58a459be0b7d /iconv
parent5f9b78fe35d08739b6da1e5b356786d41116c108 (diff)
downloadglibc-1e0e6d656db9dfa12ef7eb67976385d3deb0d4ff.tar
glibc-1e0e6d656db9dfa12ef7eb67976385d3deb0d4ff.tar.gz
glibc-1e0e6d656db9dfa12ef7eb67976385d3deb0d4ff.tar.bz2
glibc-1e0e6d656db9dfa12ef7eb67976385d3deb0d4ff.zip
iconv_charmap: Close output file when done
Reviewed-by: Arjun Shankar <arjun@redhat.com>
Diffstat (limited to 'iconv')
-rw-r--r--iconv/iconv_charmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/iconv/iconv_charmap.c b/iconv/iconv_charmap.c
index e2d53fee3c..a8b6b56124 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;
}