server: Remove redundant NULL checks before free (found by Smatch).

This commit is contained in:
Lionel Debroux 2007-10-20 09:35:13 +02:00 committed by Alexandre Julliard
parent 6bca5f6fa0
commit 2f89fe7b37
1 changed files with 2 additions and 2 deletions

View File

@ -710,7 +710,7 @@ static int set_console_input_info( const struct set_console_input_info_request *
console->history_index -= delta;
for (i = 0; i < console->history_size; i++)
if (console->history[i]) free( console->history[i] );
free( console->history[i] );
free( console->history );
console->history = mem;
console->history_size = req->history_size;
@ -1033,7 +1033,7 @@ static void console_input_destroy( struct object *obj )
release_object( console_in->event );
for (i = 0; i < console_in->history_size; i++)
if (console_in->history[i]) free( console_in->history[i] );
free( console_in->history[i] );
free( console_in->history );
}