Windows: Fix wrong parameter to CloseHandle function in case of failure of CreateEvent (Coverity)
This commit is contained in:
parent
69a9c6b394
commit
533269ca9a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue