commit | 09727ee201211df47a3158334e73a8346f599716 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Jan 26 15:46:08 2023 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Thu Jan 26 15:49:32 2023 +0100 |
tree | fb4dfd7606b1f01699ccacf6f2e47c70b4a97495 | |
parent | b91910955a449fbd1feec405ad9da921e00ee9a5 [diff] |
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 @@ ring_free(sink->ctx.ring); } LIST_DELETE(&sink->sink_list); + task_destroy(sink->forward_task); free(sink->name); free(sink->desc); free(sink);