diff --git a/pbx/pbx_lua.c b/pbx/pbx_lua.c index 13158d7587..5f8a07c04c 100644 --- a/pbx/pbx_lua.c +++ b/pbx/pbx_lua.c @@ -1208,6 +1208,7 @@ static int exec(struct ast_channel *chan, const char *context, const char *exten ast_log(LOG_ERROR, "Error executing lua extension: %s\n", error); res = -1; } + lua_pop(L, 1); } else { res = -1; }