Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ionescu007/SimpleVisor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaar Amar <saaramar5@gmail.com>2016-10-30 23:07:27 +0300
committerGitHub <noreply@github.com>2016-10-30 23:07:27 +0300
commitb1f6461c0c212f8e82aeacbfd5ba44b2a3be38e4 (patch)
treec31e1565e1e3b4f97e28e13cb73f3e14a4e71362
parentdfdb01a1a9697a6a48fae9ea17fdc0c59585728c (diff)
Fix memory leak in ShvVpLoadCallback
-rw-r--r--shvvp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/shvvp.c b/shvvp.c
index 9437ed5..097b4bf 100644
--- a/shvvp.c
+++ b/shvvp.c
@@ -224,9 +224,11 @@ ShvVpLoadCallback (
_In_ PSHV_CALLBACK_CONTEXT Context
)
{
- PSHV_VP_DATA vpData = NULL;
+ PSHV_VP_DATA vpData;
INT32 status;
+ vpData = NULL;
+
//
// Detect if the hardware appears to support VMX root mode to start.
// No attempts are made to enable this if it is lacking or disabled.