mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 16:28:18 +00:00
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:
parent
935626b488
commit
abfc151e0b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue