BUG/MEDIUM: lua: memory leak
authorThierry FOURNIER <thierry.fournier@ozon.io>
Wed, 26 Apr 2017 12:25:58 +0000 (14:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 26 Apr 2017 13:13:18 +0000 (15:13 +0200)
commitf3267677119430d07c0c9d75f2b5818430b99816
tree10b45711f11fe197776d3f9ce539e9f1f15eea19
parent013a84fe939cf393fbcf8deb9b4504941d382777
BUG/MEDIUM: lua: memory leak

The priv context is not cleaned when we set a new priv context.
This is caused by a stupid swap between two parameter of the
luaL_unref() function.

workaround: use set_priv only once when we process a stream.

This patch should be backported in version 1.7 and 1.6
src/hlua.c