]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
expo: Destroy the cedit expo when done
authorSimon Glass <sjg@chromium.org>
Fri, 2 May 2025 14:46:17 +0000 (08:46 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 30 May 2025 08:49:31 +0000 (09:49 +0100)
Once 'cedit run' is completed, destroy the expo so that a fresh one is
used for any future editing.

Signed-off-by: Simon Glass <sjg@chromium.org>
cmd/cedit.c

index f696356419e49b43675f289f0d084df4647184ab..20f48ae00079642c07b6a78bedb1a90fcda0f19e 100644 (file)
@@ -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;
 }