mirror of
git://sourceware.org/git/glibc.git
synced 2025-02-05 12:40:55 +08:00
iconv_charmap: Close output file when done
Reviewed-by: Arjun Shankar <arjun@redhat.com>
(cherry picked from commit 1e0e6d656d
)
This commit is contained in:
parent
7ff4da3dc2
commit
9995d0588f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user