(closes issue #13559)
authorSteve Murphy <murf@digium.com>
Thu, 25 Sep 2008 21:54:11 +0000 (21:54 +0000)
committerSteve Murphy <murf@digium.com>
Thu, 25 Sep 2008 21:54:11 +0000 (21:54 +0000)
Reported by: mnicholson
Patches:
      pbx_lua8.diff uploaded by mnicholson (license 96)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@144563 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx/pbx_lua.c

index 13158d7..5f8a07c 100644 (file)
@@ -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;
                }