From cc44764cdea10d0dda8ba9dbe85ab38a661c3401 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 13 Aug 2023 10:54:24 -0700 Subject: 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. --- src/til_stream.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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; -- cgit v1.2.3