vpn: Host IP address was not freed
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Sun, 7 Apr 2013 14:53:49 +0000 (17:53 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 8 Apr 2013 06:16:59 +0000 (09:16 +0300)
The host ip address field is only used if user has given vpn
server as a host name instead of host ip address.

plugins/vpn.c

index a0c6928..400112e 100644 (file)
@@ -1480,6 +1480,7 @@ static void connection_destroy(gpointer hash_data)
        g_free(data->type);
        g_free(data->name);
        g_free(data->host);
+       g_free(data->host_ip);
        g_free(data->domain);
        g_hash_table_destroy(data->server_routes);
        g_hash_table_destroy(data->user_routes);