iconv_charmap: Close output file when done

Reviewed-by: Arjun Shankar <arjun@redhat.com>
This commit is contained in:
Siddhesh Poyarekar 2021-08-03 21:10:29 +05:30
parent 5f9b78fe35
commit 1e0e6d656d

View File

@ -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;
}