https://git.reactos.org/?p=reactos.git;a=commitdiff;h=047479e0a25314a1849106c5cde89fe46a8ad443

commit 047479e0a25314a1849106c5cde89fe46a8ad443
Author:     Pierre Schweitzer <[email protected]>
AuthorDate: Sat Aug 18 19:03:03 2018 +0200
Commit:     Pierre Schweitzer <[email protected]>
CommitDate: Sat Aug 18 19:03:30 2018 +0200

    [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 1cc45b0eec..b70a84cd7e 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);

Reply via email to