]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: hlua: fix conflicting comment in hlua_ctx_destroy()
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 1 Mar 2023 15:45:50 +0000 (16:45 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 5 Apr 2023 06:58:16 +0000 (08:58 +0200)
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")

src/hlua.c

index c669191fbac56af1e2dca6d16ee200a61b22ca3e..71af903a6a1cd7a242e2067c898e3f2bc83580b5 100644 (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
  * is destroyed. The destroy also the memory context. The struct "lua"
- * is not freed.
+ * will be freed.
  */
 void hlua_ctx_destroy(struct hlua *lua)
 {