]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bootctl: clear arg_xbootldr_path when acquire_xbootldr() succeeds
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 11 Aug 2019 15:04:44 +0000 (00:04 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 11 Aug 2019 15:04:44 +0000 (00:04 +0900)
src/boot/bootctl.c

index 9ecd9f78f3f20779d8d1d1f155a0a184e9e83ffc..d0bea6a9467c03683c8b80a278e1dcf229d549d0 100644 (file)
@@ -103,6 +103,7 @@ static int acquire_xbootldr(bool unprivileged_mode, sd_id128_t *ret_uuid) {
                 log_debug_errno(r, "Didn't find an XBOOTLDR partition, using the ESP as $BOOT.");
                 if (ret_uuid)
                         *ret_uuid = SD_ID128_NULL;
+                arg_xbootldr_path = mfree(arg_xbootldr_path);
                 return 0;
         }
         if (r < 0)