Commit d06b3fd5 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

msi: Fix memory leak on error path in MSI_ProcessMessage (scan-build).

parent b6307181
......@@ -1897,7 +1897,12 @@ INT MSI_ProcessMessage( MSIPACKAGE *package, INSTALLMESSAGE eMessageType, MSIREC
}
template = malloc((wcslen(template_rec) + wcslen(template_prefix) + 1) * sizeof(WCHAR));
if (!template) return ERROR_OUTOFMEMORY;
if (!template)
{
free(template_prefix);
free(template_rec);
return ERROR_OUTOFMEMORY;
}
lstrcpyW(template, template_prefix);
lstrcatW(template, template_rec);
......
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