correctly destroy the hosts
authorAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 2 Jun 2011 22:43:47 +0000 (00:43 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 2 Jun 2011 22:43:47 +0000 (00:43 +0200)
src/libcharon/plugins/updown/updown_listener.c

index 9ac720d..2bd757e 100644 (file)
@@ -260,8 +260,8 @@ METHOD(listener_t, child_updown, bool,
                                 udp_enc,
                                 config->get_hostaccess(config) ? "PLUTO_HOST_ACCESS='1' " : "",
                                 script);
-               free(my_client);
-               free(other_client);
+               my_client->destroy(my_client);
+               other_client->destroy(other_client);
                free(virtual_ip);
                free(mark_in);
                free(mark_out);