]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/core/main.c
core/main: preserve return value under valgrind
[thirdparty/systemd.git] / src / core / main.c
index 7ee3faabf4c7c6f8c926d8fe197040b4d049f4b4..e80d4645145632fe1955e55f81bfd7b211bf4333 100644 (file)
@@ -2478,7 +2478,7 @@ finish:
                  * in become_shutdown() so normally we cannot free them yet. */
                 watchdog_free_device();
                 arg_watchdog_device = mfree(arg_watchdog_device);
-                return 0;
+                return retval;
         }
 #endif