[libc++] Fix forgotten fclose() in unit test

Thanks to Andrey Maksimov for the patch.
Differential Revision: https://reviews.llvm.org/D58732

llvm-svn: 355162
This commit is contained in:
Louis Dionne 2019-03-01 01:32:44 +00:00
parent 6aad7945d7
commit afde07ce97
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ static std::size_t count_bytes(char const* filename) {
std::size_t count = 0;
while (std::fgetc(f) != EOF)
++count;
std::fclose(f);
return count;
}