From: Yu Watanabe Date: Tue, 5 Nov 2019 00:36:39 +0000 (+0900) Subject: network: use fix invalid free function X-Git-Tag: v244-rc1~95^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=acb71754e12f98ebd01963869a297ea262494740;p=thirdparty%2Fsystemd.git network: use fix invalid free function Fixes #13938. --- diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c index 90d86f35a95..5e82b3c5e08 100644 --- a/src/network/networkd-network.c +++ b/src/network/networkd-network.c @@ -306,7 +306,7 @@ int network_verify(Network *network) { LIST_FOREACH_SAFE(prefixes, prefix, prefix_next, network->static_route_prefixes) if (section_is_invalid(prefix->section)) - prefix_free(prefix); + route_prefix_free(prefix); LIST_FOREACH_SAFE(rules, rule, rule_next, network->rules) if (routing_policy_rule_section_verify(rule) < 0)