mirror of
https://github.com/redis/redis.git
synced 2026-05-28 04:02:46 -04:00
Fix lua related memory leak.
This commit is contained in:
parent
01eaf53bb3
commit
eb2196f5ce
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue