sys: FspFileContextDelete: bug fix (thanks Driver Verifier!)

This commit is contained in:
Bill Zissimopoulos 2015-12-08 23:07:33 -08:00
parent 0bbc1b4a43
commit b5f41f0475

View File

@ -59,6 +59,10 @@ VOID FspFileContextDelete(FSP_FILE_CONTEXT *FsContext)
PAGED_CODE(); PAGED_CODE();
FsRtlTeardownPerStreamContexts(&FsContext->Header); FsRtlTeardownPerStreamContexts(&FsContext->Header);
ExDeleteResourceLite(&FsContext->NonPaged->PagingIoResource);
ExDeleteResourceLite(&FsContext->NonPaged->Resource);
ExFreePoolWithTag(FsContext->NonPaged, FSP_TAG); ExFreePoolWithTag(FsContext->NonPaged, FSP_TAG);
ExFreePoolWithTag(FsContext, FSP_TAG); ExFreePoolWithTag(FsContext, FSP_TAG);
} }