SERD_API void serd_writer_free(SerdWriter* writer) { SerdWriter* const me = (SerdWriter*)writer; serd_writer_finish(me); serd_stack_free(&writer->anon_stack); free(writer->bprefix); free(me); }
SERD_API void serd_writer_free(SerdWriter* writer) { serd_writer_finish(writer); serd_stack_free(&writer->anon_stack); free(writer->bprefix); if (writer->style & SERD_STYLE_BULK) { serd_bulk_sink_free(&writer->bulk_sink); } serd_node_free(&writer->root_node); free(writer); }