Commit 1660c787 authored by vsfos's avatar vsfos Committed by Damien George

unix/main: Fix memory leakage if MICROPY_USE_READLINE is disabled.

parent 4e5611c5
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment