correctly destroy the hosts

This commit is contained in:
Andreas Steffen 2011-06-03 00:43:47 +02:00
parent a8d0bd7465
commit 145a8b04d1
1 changed files with 2 additions and 2 deletions

View 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);