mirror of
https://github.com/reactos/reactos.git
synced 2024-08-04 02:20:54 +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;
|
goto cleanup;
|
||||||
|
|
||||||
regerror:
|
regerror:
|
||||||
if( SubOut ) free( SubOut );
|
if( SubOut ) { free( SubOut ); SubOut = NULL; }
|
||||||
cleanup:
|
cleanup:
|
||||||
if( ValueKey && ValueKey != Root ) {
|
if( ValueKey && ValueKey != Root ) {
|
||||||
DH_DbgPrint(MID_TRACE,("Closing key %x\n", ValueKey));
|
DH_DbgPrint(MID_TRACE,("Closing key %x\n", ValueKey));
|
||||||
|
|
|
@ -87,13 +87,3 @@ void ConsumeRegValueString( PWCHAR Value ) {
|
||||||
PWCHAR *QueryRegistryValueStringMulti( HANDLE RegHandle, PWCHAR ValueName ) {
|
PWCHAR *QueryRegistryValueStringMulti( HANDLE RegHandle, PWCHAR ValueName ) {
|
||||||
return 0; /* FIXME if needed */
|
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