summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--netlink-notify.c3
1 files changed, 2 insertions, 1 deletions
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: