mscms: Fix double free on error path in EnumColorProfilesA (scan-build).

If fileW is not null, it is freed at the end of the function.
This commit is contained in:
Alex Henrie 2023-06-04 21:59:31 -06:00 committed by Alexandre Julliard
parent 935626b488
commit abfc151e0b

View file

@ -810,6 +810,7 @@ BOOL WINAPI EnumColorProfilesA( PCSTR machine, PENUMTYPEA record, PBYTE buffer,
if (!(ret = header_from_file( fileW, &header )))
{
free( fileW );
fileW = NULL;
continue;
}