]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
IPv6ND: Free routeinfo when it expires (#670)
authorRoy Marples <roy@marples.name>
Mon, 22 Jun 2026 23:34:58 +0000 (00:34 +0100)
committerGitHub <noreply@github.com>
Mon, 22 Jun 2026 23:34:58 +0000 (00:34 +0100)
Reported-by: CuB3y0nd <root@cubeyond.net>
src/ipv6nd.c

index f2c8c207420d8ef65e8cff6a7a529636ceaf0530..2d45b8e990260b2f455b013c58cde39e1dfdfcf9 100644 (file)
@@ -1814,6 +1814,7 @@ ipv6nd_expirera(void *arg)
                                logwarnx("%s: expired route %s",
                                    rap->iface->name, rinfo->sprefix);
                                TAILQ_REMOVE(&rap->rinfos, rinfo, next);
+                               free(rinfo);
                        }
                }