From: Simon Glass Date: Fri, 2 May 2025 14:46:17 +0000 (-0600) Subject: expo: Destroy the cedit expo when done X-Git-Tag: v2025.10-rc1~118^2~56^2~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34cb881cc0149513cec85eeca96d3767373235e8;p=thirdparty%2Fu-boot.git expo: Destroy the cedit expo when done Once 'cedit run' is completed, destroy the expo so that a fresh one is used for any future editing. Signed-off-by: Simon Glass --- diff --git a/cmd/cedit.c b/cmd/cedit.c index f696356419e..20f48ae0007 100644 --- a/cmd/cedit.c +++ b/cmd/cedit.c @@ -287,6 +287,8 @@ static int do_cedit_run(struct cmd_tbl *cmdtp, int flag, int argc, log_err("Failed (err=%dE)\n", ret); return CMD_RET_FAILURE; } + expo_destroy(cur_exp); + cur_exp = NULL; return 0; }