diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-06-05 16:06:57 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-06-06 14:39:15 +0200 |
commit | ef59409ff2f3c0da4f48455d945fe41db7e685d9 (patch) | |
tree | b0f9332d229c01b0b7aad296929b1261fac8804a /src/core/main.c | |
parent | core: comment verbosely what the difference betweem set_manager_settings() an... (diff) | |
download | systemd-ef59409ff2f3c0da4f48455d945fe41db7e685d9.tar.xz systemd-ef59409ff2f3c0da4f48455d945fe41db7e685d9.zip |
main: use rlimit_free_all() at one more place
Diffstat (limited to '')
-rw-r--r-- | src/core/main.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/main.c b/src/core/main.c index 258ec0e56f..4305a3ffd8 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -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); |