Commit 3caa27ea authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

wusa: Zero out identity on error path in read_identity.

Fixes double frees in read_components and read_dependency. The double frees could also be fixed by using free instead of free_dependency in those functions, but zeroing out the pointers is easier to understand because it ensures that alloc_dependency can always be paired with free_dependency.
parent 617117ce
......@@ -275,6 +275,7 @@ static BOOL read_identity(IXMLDOMElement *root, struct assembly_identity *identi
error:
clear_identity(identity);
memset(identity, 0, sizeof(*identity));
return FALSE;
}
......
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