From: Yu Watanabe Date: Thu, 6 Jul 2023 12:04:47 +0000 (+0900) Subject: network,ndisc: use correct free function for captive portal X-Git-Tag: v254-rc1~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=535134bc51e2c66626796c0cd2249b52177654c7;p=thirdparty%2Fsystemd.git network,ndisc: use correct free function for captive portal Fixes memleak introduced by 64de00c49fde341d09b817164fe8cc8f7da46268. Fixes #28277. --- diff --git a/src/network/networkd-ndisc.c b/src/network/networkd-ndisc.c index 64c192a539c..765e68c2635 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;