Don't try to free twice a pointer.

svn path=/trunk/; revision=23264
This commit is contained in:
Hervé Poussineau 2006-07-24 12:14:26 +00:00
parent 8f7ebb2923
commit 1a11ca877f

View file

@ -307,7 +307,7 @@ GetVersionInformationFromInfFile(
&RequiredSize);
if (Result)
{
/* We know know the needed buffer size */
/* We know the needed buffer size */
ProviderName = HeapAlloc(GetProcessHeap(), 0, RequiredSize * sizeof(WCHAR));
if (!ProviderName)
{
@ -405,7 +405,10 @@ GetVersionInformationFromInfFile(
cleanup:
if (!ret)
{
HeapFree(GetProcessHeap(), 0, ProviderName);
*pProviderName = NULL;
}
HeapFree(GetProcessHeap(), 0, DriverVer);
return ret;