From 60ab0f7d207addd0ff2d2b767d1e25fd62d56eda Mon Sep 17 00:00:00 2001 From: Aurelien DARRAGON Date: Wed, 1 Mar 2023 16:45:50 +0100 Subject: [PATCH] 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") --- src/hlua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hlua.c b/src/hlua.c index c669191fb..71af903a6 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -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) {