mirror of
https://mirrors.tuna.tsinghua.edu.cn/git/glibc.git
synced 2026-01-12 00:20:19 +08:00
iconv_charmap: Close output file when done
Reviewed-by: Arjun Shankar <arjun@redhat.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user