From 75a9122678e0cf852b6e9161db9a32e557213537 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 7 Jul 2023 06:18:36 +0900 Subject: [PATCH] network,ndisc: use ndisc_captive_portal_free() at one more place Fixes another memleak introduced by 64de00c49fde341d09b817164fe8cc8f7da46268. Fixes #28283. --- src/network/networkd-ndisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/networkd-ndisc.c b/src/network/networkd-ndisc.c index 765e68c2635..de7d3e6dfa7 100644 --- a/src/network/networkd-ndisc.c +++ b/src/network/networkd-ndisc.c @@ -1004,7 +1004,7 @@ static int ndisc_drop_outdated(Link *link, usec_t timestamp_usec) { if (cp->lifetime_usec >= timestamp_usec) continue; /* the captive portal is still valid */ - free(set_remove(link->ndisc_captive_portals, cp)); + ndisc_captive_portal_free(set_remove(link->ndisc_captive_portals, cp)); updated = true; }