Commit e122f813 authored by Lionel Debroux's avatar Lionel Debroux Committed by Alexandre Julliard

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

parent 2f89fe7b
......@@ -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++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment