Once 'cedit run' is completed, destroy the expo so that a fresh one is
used for any future editing.
Signed-off-by: Simon Glass <s...@chromium.org>
---

 cmd/cedit.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cmd/cedit.c b/cmd/cedit.c
index b0eca7b4daf..2e15b063462 100644
--- a/cmd/cedit.c
+++ b/cmd/cedit.c
@@ -285,6 +285,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;
 }
-- 
2.43.0

Reply via email to