Skip to content

Commit

Permalink
unix/main: Fix memory leakage if MICROPY_USE_READLINE is disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
versaloon authored and dpgeorge committed Oct 2, 2023
1 parent 4e5611c commit 1660c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/unix/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1660c78

Please sign in to comment.