Commit eac4115d authored by WuYunlong's avatar WuYunlong Committed by antirez
Browse files

Fix lua related memory leak.

parent d075df17
......@@ -2213,6 +2213,7 @@ void ldbEval(lua_State *lua, sds *argv, int argc) {
ldbLog(sdscatfmt(sdsempty(),"<error> %s",lua_tostring(lua,-1)));
lua_pop(lua,1);
sdsfree(code);
sdsfree(expr);
return;
}
}
......
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