projects
/
haproxy-3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b919109
)
BUG/MINOR: sink: free the forwarding task on exit
author
Willy Tarreau
<w@1wt.eu>
Thu, 26 Jan 2023 14:46:08 +0000
(15:46 +0100)
committer
Willy Tarreau
<w@1wt.eu>
Thu, 26 Jan 2023 14:49:32 +0000
(15:49 +0100)
ASAN reported a small leak of the sink's forwarding task on exit.
This should be backported as far as 2.2.
src/sink.c
patch
|
blob
|
history
diff --git
a/src/sink.c
b/src/sink.c
index
e8d0005
..
58bcf81
100644
(file)
--- 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);