Skip to content

Commit 535134b

Browse files
yuwatabluca
authored andcommitted
network,ndisc: use correct free function for captive portal
Fixes memleak introduced by 64de00c. Fixes #28277.
1 parent f00022e commit 535134b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/network/networkd-ndisc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ DEFINE_PRIVATE_HASH_OPS_WITH_KEY_DESTRUCTOR(
823823
NDiscCaptivePortal,
824824
ndisc_captive_portal_hash_func,
825825
ndisc_captive_portal_compare_func,
826-
free);
826+
ndisc_captive_portal_free);
827827

828828
static int ndisc_router_process_captive_portal(Link *link, sd_ndisc_router *rt) {
829829
_cleanup_(ndisc_captive_portal_freep) NDiscCaptivePortal *new_entry = NULL;

0 commit comments

Comments
 (0)