mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 02:58:02 -06:00
Windows: Fix wrong parameter to CloseHandle function in case of failure of CreateEvent (Coverity)
This commit is contained in:
@@ -285,7 +285,7 @@ int ReadVolumeHeader (BOOL bBoot, char *encryptedHeader, Password *password, int
|
||||
*noOutstandingWorkItemEvent = CreateEvent (NULL, FALSE, TRUE, NULL);
|
||||
if (!*noOutstandingWorkItemEvent)
|
||||
{
|
||||
CloseHandle (keyDerivationCompletedEvent);
|
||||
CloseHandle (*keyDerivationCompletedEvent);
|
||||
TCfree (keyDerivationWorkItems);
|
||||
TCfree(keyDerivationCompletedEvent);
|
||||
TCfree(noOutstandingWorkItemEvent);
|
||||
|
||||
Reference in New Issue
Block a user