diff --git a/src/samples/test-sample/test.cpp b/src/samples/test-sample/test.cpp index feece83f..fa2d844a 100644 --- a/src/samples/test-sample/test.cpp +++ b/src/samples/test-sample/test.cpp @@ -734,6 +734,13 @@ namespace success = false; } + // Free the allocated memory + if (!VirtualFree(addr, 0, MEM_RELEASE)) + { + puts("Failed to free allocated region"); + success = false; + } + return success; }