fix bug in dladdr that prevented resolving addresses in the PLT
[oweals/musl.git] / src / stdio / fclose.c
index 92bf7ff8858dd214bca90c3961df31062cfd5a23..38e8a1e39dae99255328d97150180652afde9fb2 100644 (file)
@@ -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();