Skip to content

Commit

Permalink
[libc++] Fix forgotten fclose() in unit test
Browse files Browse the repository at this point in the history
Thanks to Andrey Maksimov for the patch.
Differential Revision: https://reviews.llvm.org/D58732

llvm-svn: 355162
  • Loading branch information
ldionne committed Mar 1, 2019
1 parent 6aad794 commit afde07c
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -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;
}

Expand Down

0 comments on commit afde07c

Please sign in to comment.