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-sort.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/serd-sort.c') diff --git a/tools/serd-sort.c b/tools/serd-sort.c index 5e71e95e..bbdfa164 100644 --- a/tools/serd-sort.c +++ b/tools/serd-sort.c @@ -95,6 +95,8 @@ run(const Options opts) opts.n_inputs, opts.inputs, inserter))) { + serd_sink_free(inserter); + serd_model_free(model); serd_tool_cleanup(app); return st; } @@ -127,6 +129,9 @@ run(const Options opts) st = serd_writer_finish(app.writer); } + serd_sink_free(inserter); + serd_model_free(model); + const SerdStatus cst = serd_tool_cleanup(app); return st ? st : cst; } -- cgit v1.2.1