Commit 0a8b344f authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

server: Fix a possible memory leak.

parent db9b557b
......@@ -656,6 +656,7 @@ static struct key *create_key( struct key *key, const struct unicode_str *name,
if (class && class->len)
{
key->classlen = class->len;
if (key->class) free(key->class);
if (!(key->class = memdup( class->str, key->classlen ))) key->classlen = 0;
}
grab_object( key );
......
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