Raptor RDF Syntax Parsing and Serializing Library Manual
Destroy the serializer
To tidy up, delete the serializer object as follows:
raptor_free_serializer(rdf_serializer);