From: Yu Watanabe Date: Thu, 6 Jul 2023 21:18:36 +0000 (+0900) Subject: network,ndisc: use ndisc_captive_portal_free() at one more place X-Git-Tag: v254-rc2~83 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=75a9122678e0cf852b6e9161db9a32e557213537;p=thirdparty%2Fsystemd.git network,ndisc: use ndisc_captive_portal_free() at one more place Fixes another memleak introduced by 64de00c49fde341d09b817164fe8cc8f7da46268. Fixes #28283. --- 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; }