From: Christopher Faulet Date: Mon, 24 Feb 2020 15:26:55 +0000 (+0100) Subject: MINOR: filters/lua: Release filters before the lua context X-Git-Tag: v2.5-dev4~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=03fb1b26f739487a49e5fe0f40ae85fb5296b4f8;p=thirdparty%2Fhaproxy.git MINOR: filters/lua: Release filters before the lua context This patch is mandatory to allow the support of the filters written in lua. --- 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;