Fixed NULL dereference.
This commit is contained in:
parent
4e1194c53b
commit
449929fc35
@ -629,11 +629,11 @@ static int cliprdr_server_receive_format_list(CliprdrServerContext* context, wSt
|
|||||||
|
|
||||||
for (index = 0; index < formatList.numFormats; index++)
|
for (index = 0; index < formatList.numFormats; index++)
|
||||||
{
|
{
|
||||||
if (formats[index].formatName)
|
if (formatList.formats[index].formatName)
|
||||||
free(formats[index].formatName);
|
free(formatList.formats[index].formatName);
|
||||||
}
|
}
|
||||||
|
|
||||||
free(formats);
|
free(formatList.formats);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user