Unverified Commit 6ca1ad1e authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo Committed by GitHub
Browse files

Merge pull request #6825 from trevor211/fixMemoryLeakAboutLuaScript

Fix memory leak about lua script
parents 2400f578 eb2196f5
...@@ -2473,6 +2473,7 @@ void ldbEval(lua_State *lua, sds *argv, int argc) { ...@@ -2473,6 +2473,7 @@ void ldbEval(lua_State *lua, sds *argv, int argc) {
ldbLog(sdscatfmt(sdsempty(),"<error> %s",lua_tostring(lua,-1))); ldbLog(sdscatfmt(sdsempty(),"<error> %s",lua_tostring(lua,-1)));
lua_pop(lua,1); lua_pop(lua,1);
sdsfree(code); sdsfree(code);
sdsfree(expr);
return; return;
} }
} }
......
...@@ -741,3 +741,8 @@ start_server {tags {"scripting repl"}} { ...@@ -741,3 +741,8 @@ start_server {tags {"scripting repl"}} {
} }
} }
start_server {tags {"scripting"}} {
r script debug sync
r eval {return 'hello'} 0
r eval {return 'hello'} 0
}
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