correctly destroy the hosts

This commit is contained in:
Andreas Steffen
2011-06-03 00:43:47 +02:00
parent a8d0bd7465
commit 145a8b04d1
@@ -260,8 +260,8 @@ METHOD(listener_t, child_updown, bool,
udp_enc, udp_enc,
config->get_hostaccess(config) ? "PLUTO_HOST_ACCESS='1' " : "", config->get_hostaccess(config) ? "PLUTO_HOST_ACCESS='1' " : "",
script); script);
free(my_client); my_client->destroy(my_client);
free(other_client); other_client->destroy(other_client);
free(virtual_ip); free(virtual_ip);
free(mark_in); free(mark_in);
free(mark_out); free(mark_out);