mirror of
https://github.com/reactos/reactos.git
synced 2024-07-12 07:35:10 +00:00
some detritus exposed by coverity.
svn path=/trunk/; revision=36409
This commit is contained in:
parent
9c5dbd4ca2
commit
9b1a7c47bd
|
@ -85,7 +85,7 @@ PCHAR RegReadString( HKEY Root, PCHAR Subkey, PCHAR Value ) {
|
|||
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));
|
||||
|
|
|
@ -87,13 +87,3 @@ void ConsumeRegValueString( PWCHAR Value ) {
|
|||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue