rsaenh: Use LocalFree to free memory return by Crypt(Un)ProtectData.

This commit is contained in:
Juan Lang 2007-11-06 13:58:55 -08:00 committed by Alexandre Julliard
parent 5408471b23
commit 8788cca0ef
1 changed files with 2 additions and 2 deletions

View File

@ -895,7 +895,7 @@ static void store_key_pair(HCRYPTKEY hCryptKey, HKEY hKey, LPCSTR szValueName, D
{
RegSetValueExA(hKey, szValueName, 0, REG_BINARY,
blobOut.pbData, blobOut.cbData);
HeapFree(GetProcessHeap(), 0, blobOut.pbData);
LocalFree(blobOut.pbData);
}
}
HeapFree(GetProcessHeap(), 0, pbKey);
@ -1135,7 +1135,7 @@ static BOOL read_key_value(HCRYPTPROV hKeyContainer, HKEY hKey, LPCSTR szValueNa
{
ret = RSAENH_CPImportKey(hKeyContainer, blobOut.pbData, blobOut.cbData, 0, 0,
phCryptKey);
HeapFree(GetProcessHeap(), 0, blobOut.pbData);
LocalFree(blobOut.pbData);
}
}
HeapFree(GetProcessHeap(), 0, pbKey);