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.
This commit is contained in:
Alex Henrie 2023-06-10 13:06:58 -06:00 committed by Alexandre Julliard
parent 617117ceae
commit 3caa27eafb

View file

@ -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;
}