mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 15:41:10 +00:00
crypt32: Free memory on an error path.
This commit is contained in:
parent
1dce5ed3b0
commit
b85492e851
|
@ -567,7 +567,11 @@ BOOL WINAPI CryptGetDefaultOIDFunctionAddress(HCRYPTOIDFUNCSET hFuncSet,
|
|||
*phFuncAddr = addr;
|
||||
}
|
||||
else
|
||||
{
|
||||
CryptFreeOIDFunctionAddress(*phFuncAddr, 0);
|
||||
SetLastError(ERROR_FILE_NOT_FOUND);
|
||||
*phFuncAddr = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue