wusa: Zero out identity on error path in read_identity.
commit3caa27eafbecfa610e07844d2ed1e09a30960f34
authorAlex Henrie <alexhenrie24@gmail.com>
Sat, 10 Jun 2023 19:06:58 +0000 (10 13:06 -0600)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 16 Jun 2023 08:30:21 +0000 (16 10:30 +0200)
treef3f4a0b3372118c15fd25e0252e0dd57e0f922c1
parent617117ceae128d48f9070436f2dc98156068dd06
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.
programs/wusa/manifest.c