-/* $Id$ */
-
/* fclose( FILE * )
This file is part of the Public Domain C Library (PDCLib).
{
remove( stream->filename );
}
+ /* Free user buffer (SetVBuf allocated) */
+ if ( stream->status & _PDCLIB_FREEBUFFER )
+ {
+ free( stream->buffer );
+ }
/* Free stream */
if ( ! ( stream->status & _PDCLIB_STATIC ) )
{