don't try to free a NULL pointer

svn path=/trunk/; revision=28888
This commit is contained in:
Ged Murphy 2007-09-05 22:44:46 +00:00
parent b1833d8186
commit 2525c2ea6a

View file

@ -288,7 +288,8 @@ done:;
if (dwError != ERROR_SUCCESS)
{
HeapFree(GetProcessHeap(), 0, ptr);
HeapFree(GetProcessHeap(), 0, expanded);
if (expanded)
HeapFree(GetProcessHeap(), 0, expanded);
}
return dwError;