summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/xmake/readline/readline.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/xmake/readline/readline.c b/core/src/xmake/readline/readline.c
index 68027a4ec..c0088a582 100644
--- a/core/src/xmake/readline/readline.c
+++ b/core/src/xmake/readline/readline.c
@@ -58,6 +58,9 @@ tb_int_t xm_readline_readline(lua_State* lua)
else
lua_pushnil(lua);
+ // free it
+ tb_free((void*)line);
+
// ok
return 1;
}