mirror of
https://github.com/reactos/reactos.git
synced 2025-08-01 18:53:05 +00:00
don't try to free a NULL pointer
svn path=/trunk/; revision=28888
This commit is contained in:
parent
b1833d8186
commit
2525c2ea6a
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue