Author: gedmurphy
Date: Thu Sep 6 02:44:46 2007
New Revision: 28888
URL:
http://svn.reactos.org/svn/reactos?rev=28888&view=rev
Log:
don't try to free a NULL pointer
Modified:
trunk/reactos/base/system/services/config.c
Modified: trunk/reactos/base/system/services/config.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/services/confi…
==============================================================================
--- trunk/reactos/base/system/services/config.c (original)
+++ trunk/reactos/base/system/services/config.c Thu Sep 6 02:44:46 2007
@@ -288,7 +288,8 @@
if (dwError != ERROR_SUCCESS)
{
HeapFree(GetProcessHeap(), 0, ptr);
- HeapFree(GetProcessHeap(), 0, expanded);
+ if (expanded)
+ HeapFree(GetProcessHeap(), 0, expanded);
}
return dwError;