mirror of
https://github.com/systemd/systemd.git
synced 2026-07-18 05:20:07 +00:00
main: use rlimit_free_all() at one more place
This commit is contained in:
@@ -1926,12 +1926,9 @@ static int do_queue_default_job(
|
||||
}
|
||||
|
||||
static void free_arguments(void) {
|
||||
size_t j;
|
||||
|
||||
/* Frees all arg_* variables, with the exception of arg_serialization */
|
||||
|
||||
for (j = 0; j < ELEMENTSOF(arg_default_rlimit); j++)
|
||||
arg_default_rlimit[j] = mfree(arg_default_rlimit[j]);
|
||||
rlimit_free_all(arg_default_rlimit);
|
||||
|
||||
arg_default_unit = mfree(arg_default_unit);
|
||||
arg_confirm_spawn = mfree(arg_confirm_spawn);
|
||||
|
||||
Reference in New Issue
Block a user