From 03fb1b26f739487a49e5fe0f40ae85fb5296b4f8 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Mon, 24 Feb 2020 16:26:55 +0100 Subject: [PATCH] MINOR: filters/lua: Release filters before the lua context This patch is mandatory to allow the support of the filters written in lua. --- src/stream.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/stream.c b/src/stream.c index 54f5b924e4..132ee3abd5 100644 --- a/src/stream.c +++ b/src/stream.c @@ -655,6 +655,9 @@ static void stream_free(struct stream *s) pool_free(pool_head_uniqueid, s->unique_id.ptr); s->unique_id = IST_NULL; + flt_stream_stop(s); + flt_stream_release(s, 0); + hlua_ctx_destroy(s->hlua); s->hlua = NULL; if (s->txn) @@ -684,9 +687,6 @@ static void stream_free(struct stream *s) s->resolv_ctx.requester = NULL; } - flt_stream_stop(s); - flt_stream_release(s, 0); - if (fe) { if (s->req_cap) { struct cap_hdr *h; -- 2.47.3