mirror of https://mirror.osredm.com/root/redis.git
Fix lua related memory leak.
This commit is contained in:
parent
01eaf53bb3
commit
eb2196f5ce
|
@ -2473,6 +2473,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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue