summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-08-13 10:54:24 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-08-13 10:56:26 -0700
commitcc44764cdea10d0dda8ba9dbe85ab38a661c3401 (patch)
treeaf67332c57fcb9d6522509ef1e344f8b4000d268
parentc0022547f2186571ab9273e699e5936529a942ba (diff)
til_stream: gc module contexts on til_stream_free()
Technically this was leaking contexts but it's only done on the road to process exit currently anyways.
-rw-r--r--src/til_stream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/til_stream.c b/src/til_stream.c
index a16c3af..0514960 100644
--- a/src/til_stream.c
+++ b/src/til_stream.c
@@ -134,6 +134,8 @@ til_stream_t * til_stream_free(til_stream_t *stream)
if (!stream)
return NULL;
+ til_stream_gc_module_contexts(stream);
+
for (int i = 0; i < TIL_STREAM_PIPE_BUCKETS_COUNT; i++) {
for (til_stream_pipe_t *p = stream->pipe_buckets[i], *p_next; p != NULL; p = p_next) {
p_next = p->next;
© All Rights Reserved