network: use TAKE_PTR() at one more place

This commit is contained in:
Yu Watanabe
2018-09-27 17:48:34 +09:00
parent 1b3194d8f2
commit 8e37fcbd21
+1 -2
View File
@@ -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)