From f92ddc009df4f8bebca7eeb7235b3814de8b5519 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 12 Aug 2013 22:26:56 +0200 Subject: do net free interface name --- netlink-notify.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netlink-notify.c b/netlink-notify.c index f9c45ee..d2df50b 100644 --- a/netlink-notify.c +++ b/netlink-notify.c @@ -371,7 +371,8 @@ static int msg_handler (struct sockaddr_nl *nl, struct nlmsghdr *msg) { icon = ICON_NETWORK_AWAY; free_chain(&addresses_seen[ifi->ifi_index]); - free(name[ifi->ifi_index]); + /* do not free name[ifi->ifi_index] here ... Looks like some drivers send + * RTM_NEWLINK (for a last link down) after the device has gone away... */ break; default: -- cgit v1.2.3-70-g09d2