From: Willy Tarreau Date: Thu, 26 Jan 2023 14:46:08 +0000 (+0100) Subject: BUG/MINOR: sink: free the forwarding task on exit X-Git-Tag: v2.8-dev3~87 X-Git-Url: http://git.haproxy.org/?a=commitdiff_plain;h=09727ee201211df47a3158334e73a8346f599716;p=haproxy-3.0.git BUG/MINOR: sink: free the forwarding task on exit ASAN reported a small leak of the sink's forwarding task on exit. This should be backported as far as 2.2. --- diff --git a/src/sink.c b/src/sink.c index e8d0005..58bcf81 100644 --- a/src/sink.c +++ b/src/sink.c @@ -1404,6 +1404,7 @@ static void sink_deinit() ring_free(sink->ctx.ring); } LIST_DELETE(&sink->sink_list); + task_destroy(sink->forward_task); free(sink->name); free(sink->desc); free(sink);