mirror of
https://github.com/systemd/systemd
synced 2024-07-21 18:24:38 +00:00
network,ndisc: use correct free function for captive portal
Fixes memleak introduced by 64de00c49f
.
Fixes #28277.
This commit is contained in:
parent
f00022eb86
commit
535134bc51
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue