From: Yu Watanabe Date: Sun, 11 Aug 2019 15:04:44 +0000 (+0900) Subject: bootctl: clear arg_xbootldr_path when acquire_xbootldr() succeeds X-Git-Tag: v243-rc2~47^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a2ae0d4969b1e60cf82094c1635985d55cb1e9ac;p=thirdparty%2Fsystemd.git bootctl: clear arg_xbootldr_path when acquire_xbootldr() succeeds --- diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index 9ecd9f78f3f..d0bea6a9467 100644 --- a/src/boot/bootctl.c +++ b/src/boot/bootctl.c @@ -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)