forked from OSchip/llvm-project
[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:
parent
6aad7945d7
commit
afde07ce97
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue