X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Ffclose.c;h=38e8a1e39dae99255328d97150180652afde9fb2;hb=5afc74fbaa2371f30df0dc9fb7bc3afe6bd96137;hp=92bf7ff8858dd214bca90c3961df31062cfd5a23;hpb=c8cb6bcdf009e94c12c6e256b8e24a9bc5fdaf05;p=musl diff --git a/src/stdio/fclose.c b/src/stdio/fclose.c index 92bf7ff8..38e8a1e3 100644 --- a/src/stdio/fclose.c +++ b/src/stdio/fclose.c @@ -5,8 +5,7 @@ int fclose(FILE *f) int r; int perm; - /* This lock is not paired with any unlock. */ - FLOCK(f); + FFINALLOCK(f); if (!(perm = f->flags & F_PERM)) { OFLLOCK();