X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=functions%2Fstdio%2Ffclose.c;h=37349c06881b98291e8a824c30b6d3c808ba3c2a;hp=bc8d852e4d378f4ceb8d154cba1cc18c4e5852aa;hb=35d48051496adf237dcd22ff1324e93b6f351284;hpb=557f9cef52356953c0bcb97e1e32299092d3d22c diff --git a/functions/stdio/fclose.c b/functions/stdio/fclose.c index bc8d852..37349c0 100644 --- a/functions/stdio/fclose.c +++ b/functions/stdio/fclose.c @@ -56,7 +56,7 @@ int fclose( FILE * stream ) remove( stream->filename ); } /* Free user buffer (SetVBuf allocated) */ - if ( ! ( stream->status & _PDCLIB_FREEBUFFER ) ) + if ( stream->status & _PDCLIB_FREEBUFFER ) { free( stream->buffer ); }