From: Yu Watanabe Date: Thu, 27 Sep 2018 08:26:04 +0000 (+0900) Subject: network: use TAKE_PTR() at one more place X-Git-Tag: v240~671^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8e37fcbd2151a93584e07a36d7f700be22aaf9e3;p=thirdparty%2Fsystemd.git network: use TAKE_PTR() at one more place --- diff --git a/src/network/networkd-routing-policy-rule.c b/src/network/networkd-routing-policy-rule.c index afa14491913..ce9e1416a9c 100644 --- a/src/network/networkd-routing-policy-rule.c +++ b/src/network/networkd-routing-policy-rule.c @@ -394,9 +394,8 @@ static int routing_policy_rule_new_static(Network *network, const char *filename if (r < 0) return r; - rule->section = n; + rule->section = TAKE_PTR(n); rule->network = network; - n = NULL; r = hashmap_put(network->rules_by_section, rule->section, rule); if (r < 0)