From 535134bc51e2c66626796c0cd2249b52177654c7 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 6 Jul 2023 21:04:47 +0900 Subject: [PATCH] network,ndisc: use correct free function for captive portal Fixes memleak introduced by 64de00c49fde341d09b817164fe8cc8f7da46268. Fixes #28277. --- 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 64c192a539..765e68c263 100644 --- a/src/network/networkd-ndisc.c +++ b/src/network/networkd-ndisc.c @@ -823,7 +823,7 @@ DEFINE_PRIVATE_HASH_OPS_WITH_KEY_DESTRUCTOR( NDiscCaptivePortal, ndisc_captive_portal_hash_func, ndisc_captive_portal_compare_func, - free); + ndisc_captive_portal_free); static int ndisc_router_process_captive_portal(Link *link, sd_ndisc_router *rt) { _cleanup_(ndisc_captive_portal_freep) NDiscCaptivePortal *new_entry = NULL;