aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/i386-io-windows.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/i386-io-windows.h b/lib/i386-io-windows.h
index 8089d19..73af883 100644
--- a/lib/i386-io-windows.h
+++ b/lib/i386-io-windows.h
@@ -592,12 +592,14 @@ grant_process_token_dacl_permissions(HANDLE process, DWORD permissions, HANDLE *
if (MySetSecurityInfo(*token, SE_KERNEL_OBJECT, DACL_SECURITY_INFORMATION, NULL, NULL, new_dacl, NULL) != ERROR_SUCCESS)
{
+ LocalFree(new_dacl);
LocalFree(*security_descriptor);
LocalFree(owner);
CloseHandle(*token);
return FALSE;
}
+ LocalFree(new_dacl);
LocalFree(owner);
return TRUE;
}