1
0
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:
Lennart Poettering 2019-03-28 16:46:27 +01:00
parent 48da47eeca
commit 7d2c9c6b50

View File

@ -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;
}
}