Fixed cleanup of MachineAddresses and MachinePorts.

This commit is contained in:
Armin Novak 2015-06-24 12:12:40 +02:00
parent ee221315db
commit c78b6f38ab

View File

@ -224,6 +224,18 @@ int freerdp_assistance_parse_address_list(rdpAssistanceFile* file, char* list)
ret = 1;
out:
if (file->MachineAddresses)
{
for (i=0; i<count; i++)
free (file->MachineAddresses[i]);
}
free (file->MachineAddresses);
free (file->MachinePorts);
file->MachineCount = 0;
file->MachinePorts = NULL;
file->MachineAddresses = NULL;
free(tokens);
free(str);
return ret;