summaryrefslogtreecommitdiff
path: root/fipstest.cpp
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2003-06-10 00:19:06 +0000
committerweidai <weidai11@users.noreply.github.com>2003-06-10 00:19:06 +0000
commitb3843db7431e2b66da9cc236da02c087a9a1723e (patch)
treebff8f5cc4d5479353f25c4a4541dfdb188732ed5 /fipstest.cpp
parent6c4437d03df6a1beadfadfc7c5388005c69665db (diff)
downloadcryptopp-git-b3843db7431e2b66da9cc236da02c087a9a1723e.tar.gz
release memory from working set after EDC test
Diffstat (limited to 'fipstest.cpp')
-rw-r--r--fipstest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/fipstest.cpp b/fipstest.cpp
index 5486e3b6..c2256193 100644
--- a/fipstest.cpp
+++ b/fipstest.cpp
@@ -264,6 +264,7 @@ void DoPowerUpSelfTest(const char *moduleFilename, const byte *expectedModuleSha
}
file.TransferTo(verifier, fileStart - currentFilePos);
verifier.Put(memStart, sectionSize);
+ ::VirtualUnlock((LPVOID)memStart, sectionSize); // release the memory from working set
file.Skip(sectionSize);
currentFilePos = fileStart + sectionSize;
}