]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: drop unnecessary free
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 22 Jun 2022 07:20:30 +0000 (16:20 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 22 Jun 2022 07:21:06 +0000 (16:21 +0900)
As reset_arguments() frees the string.

Follow-up for 919ea64f69f710840c1bc93f0f7cb7c51aae45d0.

src/core/main.c

index 18ba2b063c9a0ca13e540e722f2115181d544a1a..b796dc8c2a06f05af85d7400098d92cd2dc6b3d4 100644 (file)
@@ -3007,7 +3007,6 @@ finish:
                 /* Cleanup watchdog_device strings for valgrind. We need them
                  * in become_shutdown() so normally we cannot free them yet. */
                 watchdog_free_device();
-                arg_watchdog_device = mfree(arg_watchdog_device);
                 reset_arguments();
                 return retval;
         }