[FASTFAT] Don't leak statistics on dismount
authorPierre Schweitzer <pierre@reactos.org>
Sat, 18 Aug 2018 17:03:03 +0000 (19:03 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 18 Aug 2018 17:03:30 +0000 (19:03 +0200)
drivers/filesystems/fastfat/fsctl.c

index 1cc45b0..b70a84c 100644 (file)
@@ -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);