Issue #40: Close file when it's no longer needed

This commit is contained in:
Marcus Nilsson 2024-08-21 16:45:57 +02:00 committed by Jehan Pagès
parent dff8906402
commit 9699dfce07

View File

@ -266,6 +266,7 @@ int main(int argc, char ** argv)
printf("%s: ", filename);
}
detect(handle, f, show_lang, verbose);
fclose(f);
}
uchardet_delete(handle);