Fix leak on interface down

This commit is contained in:
Jeremy Lakeman 2013-08-15 15:48:39 +09:30
parent 0b40ef655c
commit 56cea7472a

View File

@ -58,6 +58,7 @@ overlay_interface_close(overlay_interface *interface){
link_interface_down(interface);
INFOF("Interface %s addr %s is down",
interface->name, inet_ntoa(interface->address.sin_addr));
set_destination_ref(&interface->destination, NULL);
unschedule(&interface->alarm);
unwatch(&interface->alarm);
close(interface->alarm.poll.fd);