mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 22:31:28 +02:00
CLEANUP: hlua: fix conflicting comment in hlua_ctx_destroy()
The comment for the hlua_ctx_destroy() function states that the "lua" struct is not freed. This is not true anymore since 2c8b54e7 ("MEDIUM: lua: remove Lua struct from session, and allocate it with memory pools") Updating the function comment to properly report the actual behavior. This could be backported in every stable versions with 2c8b54e7 ("MEDIUM: lua: remove Lua struct from session, and allocate it with memory pools")
This commit is contained in:
parent
c4b2437037
commit
60ab0f7d20
@ -1300,7 +1300,7 @@ static void hlua_httpclient_destroy_all(struct hlua *hlua)
|
||||
|
||||
/* Used to destroy the Lua coroutine when the attached stream or task
|
||||
* is destroyed. The destroy also the memory context. The struct "lua"
|
||||
* is not freed.
|
||||
* will be freed.
|
||||
*/
|
||||
void hlua_ctx_destroy(struct hlua *lua)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user