mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
network,ndisc: use correct free function for captive portal
Fixes memleak introduced by 64de00c49f.
Fixes #28277.
This commit is contained in:
committed by
Luca Boccassi
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;
|
||||
|
||||
Reference in New Issue
Block a user