chiark / gitweb /
Revert "socket: add support for TCP fast Open"
[elogind.git] / src / fstab-generator / fstab-generator.c
index 1256a1ce53dfeddecf1d30efb33aed89908b2fcd..2c38ab977c9c1876a68fd4d0b1bb3192eeaff1a1 100644 (file)
@@ -432,7 +432,7 @@ static int add_root_mount(void) {
         else if (arg_root_rw >= 0 ||
                  (!mount_test_option(arg_root_options, "ro") &&
                   !mount_test_option(arg_root_options, "rw")))
-                opts = strappenda3(arg_root_options, ",", arg_root_rw > 0 ? "rw" : "ro");
+                opts = strappenda(arg_root_options, ",", arg_root_rw > 0 ? "rw" : "ro");
         else
                 opts = arg_root_options;
 
@@ -543,5 +543,7 @@ int main(int argc, char *argv[]) {
                 }
         }
 
+        free(arg_root_what);
+
         return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
 }