diff --git a/src/hlua.c b/src/hlua.c index 35acff79c..437f427bb 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -6137,6 +6137,7 @@ error: static void hlua_applet_tcp_release(struct appctx *ctx) { + task_delete(ctx->ctx.hlua_apptcp.task); task_free(ctx->ctx.hlua_apptcp.task); ctx->ctx.hlua_apptcp.task = NULL; hlua_ctx_destroy(ctx->ctx.hlua_apptcp.hlua); @@ -6423,6 +6424,7 @@ error: static void hlua_applet_http_release(struct appctx *ctx) { + task_delete(ctx->ctx.hlua_apphttp.task); task_free(ctx->ctx.hlua_apphttp.task); ctx->ctx.hlua_apphttp.task = NULL; hlua_ctx_destroy(ctx->ctx.hlua_apphttp.hlua);