Module: wine Branch: master Commit: 935626b48809b26ab4a215992bf5169af0a28153 URL: https://gitlab.winehq.org/wine/wine/-/commit/935626b48809b26ab4a215992bf5169...
Author: Alex Henrie alexhenrie24@gmail.com Date: Sun Jun 4 21:57:49 2023 -0600
wusa: Fix double free on error path in read_update_package (scan-build).
If read_identity returns FALSE, it has already called clear_identity.
---
programs/wusa/manifest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/programs/wusa/manifest.c b/programs/wusa/manifest.c index 620da4fc63b..83d4125133f 100644 --- a/programs/wusa/manifest.c +++ b/programs/wusa/manifest.c @@ -587,7 +587,7 @@ static BOOL read_update_package(IXMLDOMElement *child, WCHAR *tagname, void *con list_add_tail(update_list, &entry->entry); return TRUE; } - free_dependency(entry); + free(entry); }
return FALSE;