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:
Aurelien DARRAGON 2023-03-01 16:45:50 +01:00 committed by Christopher Faulet
parent c4b2437037
commit 60ab0f7d20

View File

@ -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 /* Used to destroy the Lua coroutine when the attached stream or task
* is destroyed. The destroy also the memory context. The struct "lua" * is destroyed. The destroy also the memory context. The struct "lua"
* is not freed. * will be freed.
*/ */
void hlua_ctx_destroy(struct hlua *lua) void hlua_ctx_destroy(struct hlua *lua)
{ {