diff --git a/src/scripting.c b/src/scripting.c index b1cbc6ff..be52a114 100644 --- a/src/scripting.c +++ b/src/scripting.c @@ -287,6 +287,7 @@ int luaRedisGenericCommand(lua_State *lua, int raise_error) { luaSortArray(lua); } sdsfree(reply); + c->reply_bytes = 0; cleanup: /* Clean up. Command code may have changed argv/argc so we use the