X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Ffclose.c;h=37349c06881b98291e8a824c30b6d3c808ba3c2a;hb=457d8c23677a77dbe37584079315c8ed8faf15d5;hp=bc8d852e4d378f4ceb8d154cba1cc18c4e5852aa;hpb=aacebf0b0209d7719b3cf34a022555fbcea924f3;p=pdclib 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 ); }