- Call MmFreeSectionSegments if the Bcb reference count is zero (in CcRosReleaseFileCache).

svn path=/trunk/; revision=10917
This commit is contained in:
Hartmut Birr 2004-09-19 12:11:44 +00:00
parent 06bac7f0b9
commit 035b22b542

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id: view.c,v 1.77 2004/08/25 15:08:29 navaraf Exp $
/* $Id: view.c,v 1.78 2004/09/19 12:11:44 hbirr Exp $
*
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/cc/view.c
@ -1088,6 +1088,7 @@ CcRosReleaseFileCache(PFILE_OBJECT FileObject)
Bcb->RefCount--;
if (Bcb->RefCount == 0)
{
MmFreeSectionSegments(Bcb->FileObject);
if (Bcb->RemoveOnClose)
{
CcRosDeleteFileCache(FileObject, Bcb);