From 07bf576920d6df6efd6ce3a8bddfef615c37cb80 Mon Sep 17 00:00:00 2001 From: Lizongdi <1210855344@qq.com> Date: Wed, 1 Jul 2026 15:54:16 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E9=87=8D=E8=A6=81=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E3=80=91=E8=A7=A3=E5=86=B3=E4=BD=BF=E7=94=A8end=E8=BF=9B?= =?UTF-8?q?=E5=85=A5=E5=A4=9A=E8=A1=8C=E6=A8=A1=E5=BC=8F=E5=90=8E=E5=86=8D?= =?UTF-8?q?=E4=BD=BF=E7=94=A8exit=E9=80=80=E5=87=BA=E5=A4=9A=E8=A1=8C?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E7=9A=84=E9=87=8D=E5=A4=8D=E9=87=8A=E6=94=BE?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/lua.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/lua.c b/lua/lua.c index 78e906a..e1892d9 100644 --- a/lua/lua.c +++ b/lua/lua.c @@ -466,6 +466,7 @@ int lua_repl(char *_pcBuffer, int _iSize, int _iEcho) if (strcmp(line, "exit") == 0) { RD_FREE(line); + line = NULL; iRet = RD_SUCCESS; goto cleanup; } @@ -626,6 +627,7 @@ cleanup: wrapped_code = NULL; } RD_FREE(buffer); + buffer = NULL; lua_close(L); L = NULL; lua_init(lua_print);