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

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.
parent 935626b4
......@@ -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;
}
......
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