mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-18 02:39:44 +00:00
Fix leak on interface down
This commit is contained in:
parent
0b40ef655c
commit
56cea7472a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user