mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
xdg-autostart-service: rely on the new double-eval-free free_and_replace()
These semi-reverts 2744c7bb01
This commit is contained in:
@@ -416,8 +416,7 @@ int xdg_autostart_format_exec_start(
|
||||
if (!escaped)
|
||||
return log_oom();
|
||||
|
||||
free_and_replace(exec_split[n], escaped);
|
||||
n++;
|
||||
free_and_replace(exec_split[n++], escaped);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -457,8 +456,7 @@ int xdg_autostart_format_exec_start(
|
||||
if (!quoted)
|
||||
return log_oom();
|
||||
|
||||
free_and_replace(exec_split[n], quoted);
|
||||
n++;
|
||||
free_and_replace(exec_split[n++], quoted);
|
||||
}
|
||||
for (; exec_split[n]; n++)
|
||||
exec_split[n] = mfree(exec_split[n]);
|
||||
|
||||
Reference in New Issue
Block a user