mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
unix/main: Fix memory leakage if MICROPY_USE_READLINE is disabled.
This commit is contained in:
@@ -296,10 +296,10 @@ STATIC int do_repl(void) {
|
||||
}
|
||||
|
||||
int ret = execute_from_lexer(LEX_SRC_STR, line, MP_PARSE_SINGLE_INPUT, true);
|
||||
free(line);
|
||||
if (ret & FORCED_EXIT) {
|
||||
return ret;
|
||||
}
|
||||
free(line);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user