From: Christopher Faulet Date: Tue, 17 Oct 2023 05:43:53 +0000 (+0200) Subject: CLEANUP: hlua: Remove dead-code on error path in hlua_socket_new() X-Git-Tag: v2.9-dev8~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f9db80cc66f71e50a957bacfc74118cbd8e0963;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/hlua.c b/src/hlua.c index c686f222a8..dea4227914 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;