mirror of
https://github.com/systemd/systemd.git
synced 2025-01-10 05:18:17 +03:00
load-fragment: use TAKE_PTR() where we can
This commit is contained in:
parent
48da47eeca
commit
7d2c9c6b50
@ -312,10 +312,9 @@ int config_parse_unit_path_strv_printf(
|
||||
if (r < 0)
|
||||
return 0;
|
||||
|
||||
r = strv_push(x, k);
|
||||
r = strv_consume(x, TAKE_PTR(k));
|
||||
if (r < 0)
|
||||
return log_oom();
|
||||
k = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user