From 047479e0a25314a1849106c5cde89fe46a8ad443 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sat, 18 Aug 2018 19:03:03 +0200 Subject: [PATCH] [FASTFAT] Don't leak statistics on dismount --- drivers/filesystems/fastfat/fsctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/filesystems/fastfat/fsctl.c b/drivers/filesystems/fastfat/fsctl.c index 1cc45b0eec9..b70a84cd7e3 100644 --- a/drivers/filesystems/fastfat/fsctl.c +++ b/drivers/filesystems/fastfat/fsctl.c @@ -1299,6 +1299,7 @@ VfatDismountVolume( ExReleaseResourceLite(&DeviceExt->FatResource); /* Release a few resources and quit, we're done */ + ExFreePoolWithTag(DeviceExt->Statistics, TAG_STATS); ExDeleteResourceLite(&DeviceExt->DirResource); ExDeleteResourceLite(&DeviceExt->FatResource); ObDereferenceObject(DeviceExt->FATFileObject);