From 2f9db80cc66f71e50a957bacfc74118cbd8e0963 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 17 Oct 2023 07:43:53 +0200 Subject: [PATCH] CLEANUP: hlua: Remove dead-code on error path in hlua_socket_new() Since last fixes about the lua cosocket, the appctx is no longer initialized in hlua_socket_new(). The code to deal with error at this stage can be removed. This patch should fix the issue #2308. --- src/hlua.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/hlua.c b/src/hlua.c index c686f22..dea4227 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -3396,8 +3396,6 @@ __LJMP static int hlua_socket_new(lua_State *L) xref_create(&socket->xref, &ctx->xref); return 1; - out_fail_appctx: - appctx_free_on_early_error(appctx); out_fail_conf: WILL_LJMP(lua_error(L)); return 0; -- 1.7.10.4