diff options
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index 1a9437a09..22bcbdb73 100644 --- a/src/eval.c +++ b/src/eval.c @@ -508,6 +508,7 @@ void evalGenericCommand(client *c, int evalsha) { scriptRunCtx rctx; if (scriptPrepareForRun(&rctx, lctx.lua_client, c, lua_cur_script, l->flags, ro) != C_OK) { + lua_pop(lua,2); /* Remove the function and error handler. */ return; } rctx.flags |= SCRIPT_EVAL_MODE; /* mark the current run as EVAL (as opposed to FCALL) so we'll |