tree-wide: use free_and_strdup_warn()

This commit is contained in:
Yu Watanabe
2021-02-12 03:05:08 +09:00
parent 7fb1d980af
commit b3f9c17a6b
12 changed files with 37 additions and 62 deletions
+1 -4
View File
@@ -702,10 +702,7 @@ int config_parse_ifalias(
return 0;
}
if (free_and_strdup(s, rvalue) < 0)
return log_oom();
return 0;
return free_and_strdup_warn(s, rvalue);
}
int config_parse_rx_tx_queues(
+3 -2
View File
@@ -2055,8 +2055,9 @@ static int udev_rule_apply_token_to_event(
token->value);
break;
}
if (free_and_strdup(&event->name, buf) < 0)
return log_oom();
r = free_and_strdup_warn(&event->name, buf);
if (r < 0)
return r;
log_rule_debug(dev, rules, "NAME '%s'", event->name);
break;