summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-08-13 22:49:51 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-08-13 22:49:51 -0700
commit5785b374b554094d83ec84e838daf456cf0b9448 (patch)
tree2609a879d944127fc2c349fe2e3fa6bd8867d7e2
parentcc44764cdea10d0dda8ba9dbe85ab38a661c3401 (diff)
til_stream: fix parent_path leak in til_stream_untap_owner()
Plug a small leak
-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 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;
© All Rights Reserved