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")
(cherry picked from commit 60ab0f7d207addd0ff2d2b767d1e25fd62d56eda)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit c20c4b7181c3afd30911be987180c14193d2a2c4)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit d14798e49827784af7c667528b982b2667598d08)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit c6a9e6ad19d2bfab81aba729dc31259d40e1a224)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
diff --git a/src/hlua.c b/src/hlua.c
index 94d6963..d871de5 100644
--- a/src/hlua.c
+++ b/src/hlua.c
@@ -1129,7 +1129,7 @@
/* 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)
{