diff --git a/src/hlua.c b/src/hlua.c index 6d5074e2c..b9fee5f3c 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -11880,6 +11880,8 @@ static void hlua_cli_io_release_fct(struct appctx *appctx) { struct hlua_cli_ctx *ctx = appctx->svcctx; + task_destroy(ctx->task); + ctx->task = NULL; hlua_ctx_destroy(ctx->hlua); ctx->hlua = NULL; }