mirror of
https://github.com/reactos/reactos.git
synced 2025-05-29 22:18:13 +00:00
Don't try to free twice a pointer.
svn path=/trunk/; revision=23264
This commit is contained in:
parent
8f7ebb2923
commit
1a11ca877f
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue