mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 02:37:06 +00:00
don't try to free a NULL pointer
svn path=/trunk/; revision=28888
This commit is contained in:
parent
b1833d8186
commit
2525c2ea6a
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue