[ros-diffs] [arty] 36409: some detritus exposed by coverity.

arty at svn.reactos.org arty at svn.reactos.org
Tue Sep 23 07:58:52 CEST 2008


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.c?rev=36409&r1=36408&r2=36409&view=diff
==============================================================================
--- 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.c?rev=36409&r1=36408&r2=36409&view=diff
==============================================================================
--- 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);
-  }
-}



More information about the Ros-diffs mailing list