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

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

View File

@ -334,8 +334,8 @@ static void key_destroy( struct object *obj )
free( key->class );
for (i = 0; i <= key->last_value; i++)
{
if (key->values[i].name) free( key->values[i].name );
if (key->values[i].data) free( key->values[i].data );
free( key->values[i].name );
free( key->values[i].data );
}
free( key->values );
for (i = 0; i <= key->last_subkey; i++)