]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network,ndisc: use correct free function for captive portal
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 6 Jul 2023 12:04:47 +0000 (21:04 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 6 Jul 2023 19:30:22 +0000 (20:30 +0100)
Fixes memleak introduced by 64de00c49fde341d09b817164fe8cc8f7da46268.
Fixes #28277.

src/network/networkd-ndisc.c

index 64c192a539cc7141f233b5e7a0bd51d90ef48375..765e68c263538b05dfaad241eb3a453d292a07bb 100644 (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;