Fixed memory leak.
authorArmin Novak <armin.novak@gmail.com>
Mon, 17 Nov 2014 00:04:29 +0000 (01:04 +0100)
committerArmin Novak <armin.novak@gmail.com>
Mon, 17 Nov 2014 00:04:29 +0000 (01:04 +0100)
libfreerdp/common/assistance.c

index 03540c5..72a047d 100644 (file)
@@ -178,7 +178,8 @@ int freerdp_assistance_parse_address_list(rdpAssistanceFile* file, char* list)
 
                break;
        }
-
+       if (tokens)
+               free(tokens);
        return 1;
 }