Author: arty Date: Tue Sep 23 00:58:51 2008 New Revision: 36409
URL: http://svn.reactos.org/svn/reactos?rev=36409&view=rev Log: some detritus exposed by coverity.
Modified: trunk/reactos/base/services/dhcp/adapter.c trunk/reactos/dll/win32/iphlpapi/registry.c
Modified: trunk/reactos/base/services/dhcp/adapter.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/dhcp/adapter.... ============================================================================== --- trunk/reactos/base/services/dhcp/adapter.c [iso-8859-1] (original) +++ trunk/reactos/base/services/dhcp/adapter.c [iso-8859-1] Tue Sep 23 00:58:51 2008 @@ -85,7 +85,7 @@ goto cleanup;
regerror: - if( SubOut ) free( SubOut ); + if( SubOut ) { free( SubOut ); SubOut = NULL; } cleanup: if( ValueKey && ValueKey != Root ) { DH_DbgPrint(MID_TRACE,("Closing key %x\n", ValueKey));
Modified: trunk/reactos/dll/win32/iphlpapi/registry.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/iphlpapi/registry... ============================================================================== --- trunk/reactos/dll/win32/iphlpapi/registry.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/iphlpapi/registry.c [iso-8859-1] Tue Sep 23 00:58:51 2008 @@ -87,13 +87,3 @@ PWCHAR *QueryRegistryValueStringMulti( HANDLE RegHandle, PWCHAR ValueName ) { return 0; /* FIXME if needed */ } - -void ConsumeRegValueStringMulti( PCHAR *Value ) { - PCHAR *Orig = Value; - if (Value) { - while (*Value) { - free(*Value); - } - free(Orig); - } -}