Fixed NULL dereference.

This commit is contained in:
Armin Novak 2015-04-15 10:37:28 +02:00
parent 4e1194c53b
commit 449929fc35

View File

@ -629,11 +629,11 @@ static int cliprdr_server_receive_format_list(CliprdrServerContext* context, wSt
for (index = 0; index < formatList.numFormats; index++)
{
if (formats[index].formatName)
free(formats[index].formatName);
if (formatList.formats[index].formatName)
free(formatList.formats[index].formatName);
}
free(formats);
free(formatList.formats);
return 1;
}