From 63e7e57237a79d0447b0450a7fd3148c43052299 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 13 Aug 2021 19:31:26 -0400 Subject: Provide a full output stream implementation for SerdBuffer Essentially replaces serd_buffer_sink_finish() with serd_buffer_close(), which makes writing to a buffer consistent with writing to a file or anything else. --- tools/serd-pipe.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/serd-pipe.c') diff --git a/tools/serd-pipe.c b/tools/serd-pipe.c index 25efb54f..57392c8a 100644 --- a/tools/serd-pipe.c +++ b/tools/serd-pipe.c @@ -83,10 +83,12 @@ run(const Options opts) (st = serd_read_inputs( app.world, opts.common, app.env, opts.n_inputs, opts.inputs, sink)) || (st = serd_writer_finish(app.writer))) { + serd_sink_free(canon); serd_tool_cleanup(app); return st; } + serd_sink_free(canon); return serd_tool_cleanup(app); } -- cgit v1.2.1