chiark / gitweb /
journald: start the journal after the syslog socket, so that the syslog socket queues...
[elogind.git] / src / modules-load.c
index 4b3b12109c311d237f057a48247a0bd08c44a12d..8dd98f73d82482a30bd9945d8cab97ebf43e61d4 100644 (file)
@@ -77,7 +77,6 @@ int main(int argc, char *argv[]) {
                                 continue;
 
                         log_error("Failed to open %s: %m", *fn);
-                        free(fn);
                         r = EXIT_FAILURE;
                         continue;
                 }
@@ -131,6 +130,7 @@ finish:
 
         if (n_arguments > 3) {
                 arguments[n_arguments] = NULL;
+                strv_uniq(arguments);
                 execv("/sbin/modprobe", arguments);
 
                 log_error("Failed to execute /sbin/modprobe: %m");