PDCLIB-27 #resolve fixed
authorOwen Shepherd <owen.shepherd@e43.eu>
Tue, 7 Oct 2014 22:22:27 +0000 (23:22 +0100)
committerOwen Shepherd <owen.shepherd@e43.eu>
Tue, 7 Oct 2014 22:22:27 +0000 (23:22 +0100)
functions/stdio/fclose.c

index bc8d852e4d378f4ceb8d154cba1cc18c4e5852aa..37349c06881b98291e8a824c30b6d3c808ba3c2a 100644 (file)
@@ -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 );
             }