summaryrefslogtreecommitdiff
path: root/iface.c
diff options
context:
space:
mode:
Diffstat (limited to 'iface.c')
-rw-r--r--iface.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/iface.c b/iface.c
index b069532..4bc9b5e 100644
--- a/iface.c
+++ b/iface.c
@@ -145,10 +145,13 @@ static void iface_record_addr_del(struct iface_record *rec, struct sockaddr_stor
rec->size--;
} else {
char as[NI_MAXHOST];
+
if (getnameinfo((struct sockaddr *)addr, sizeof(*addr),
as, sizeof(as), NULL, 0, NI_NUMERICHOST))
strncpy(as, "<unknown>", sizeof(as) - 1);
log_err("Address %s to delete not found in records\n", as);
+
+ free(addrs);
}
} else if (rec->size == 1) {
free(rec->addrs);
f/?id=3efa70d78f218e4c9276b0bac0545e5184c1c47b'>Diffstat (limited to 'sound/soc/blackfin')