network,ndisc: use correct free function for captive portal

Fixes memleak introduced by 64de00c49f.
Fixes #28277.
This commit is contained in:
Yu Watanabe 2023-07-06 21:04:47 +09:00 committed by Luca Boccassi
parent f00022eb86
commit 535134bc51

View file

@ -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;