mirror of
https://gitlab.freedesktop.org/uchardet/uchardet.git
synced 2025-12-06 16:56:40 +08:00
Issue #40: Close file when it's no longer needed
This commit is contained in:
parent
dff8906402
commit
9699dfce07
@ -266,6 +266,7 @@ int main(int argc, char ** argv)
|
|||||||
printf("%s: ", filename);
|
printf("%s: ", filename);
|
||||||
}
|
}
|
||||||
detect(handle, f, show_lang, verbose);
|
detect(handle, f, show_lang, verbose);
|
||||||
|
fclose(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
uchardet_delete(handle);
|
uchardet_delete(handle);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user