From c78b6f38abe59969ffa6f54b941284fd548ea1f0 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Wed, 24 Jun 2015 12:12:40 +0200 Subject: [PATCH] Fixed cleanup of MachineAddresses and MachinePorts. --- libfreerdp/common/assistance.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libfreerdp/common/assistance.c b/libfreerdp/common/assistance.c index 1c7a41726..6eb124d40 100644 --- a/libfreerdp/common/assistance.c +++ b/libfreerdp/common/assistance.c @@ -224,6 +224,18 @@ int freerdp_assistance_parse_address_list(rdpAssistanceFile* file, char* list) ret = 1; out: + if (file->MachineAddresses) + { + for (i=0; iMachineAddresses[i]); + } + free (file->MachineAddresses); + free (file->MachinePorts); + + file->MachineCount = 0; + file->MachinePorts = NULL; + file->MachineAddresses = NULL; + free(tokens); free(str); return ret;