From 5785b374b554094d83ec84e838daf456cf0b9448 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 13 Aug 2023 22:49:51 -0700 Subject: til_stream: fix parent_path leak in til_stream_untap_owner() Plug a small leak --- src/til_stream.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/til_stream.c b/src/til_stream.c index 0514960..a5cc8e5 100644 --- a/src/til_stream.c +++ b/src/til_stream.c @@ -306,6 +306,8 @@ void til_stream_untap_owner(til_stream_t *stream, const void *owner) if (stream->hooks && stream->hooks->pipe_dtor) stream->hooks->pipe_dtor(stream->hooks_context, stream, p->owner, p->owner_foo, p->parent_path, p->driving_tap); + /* FIXME TODO: add a free_pipe() helper to share with til_stream_free() */ + free(p->parent_path); free(p); } else p_prev = p; -- cgit v1.2.3