MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlFreeParserInputBuffer

Function xmlFreeParserInputBuffer

ThirdParty/libxml2/vtklibxml2/xmlIO.c:1489–1509  ·  view source on GitHub ↗

* xmlFreeParserInputBuffer: * @in: a buffered parser input * * Free up the memory used by a buffered parser input */

Source from the content-addressed store, hash-verified

1487 * Free up the memory used by a buffered parser input
1488 */
1489void
1490xmlFreeParserInputBuffer(xmlParserInputBufferPtr in) {
1491 if (in == NULL) return;
1492
1493 if (in->raw) {
1494 xmlBufFree(in->raw);
1495 in->raw = NULL;
1496 }
1497 if (in->encoder != NULL) {
1498 xmlCharEncCloseFunc(in->encoder);
1499 }
1500 if (in->closecallback != NULL) {
1501 in->closecallback(in->context);
1502 }
1503 if (in->buffer != NULL) {
1504 xmlBufFree(in->buffer);
1505 in->buffer = NULL;
1506 }
1507
1508 xmlFree(in);
1509}
1510
1511#ifdef LIBXML_OUTPUT_ENABLED
1512/**

Callers 15

xmlParseCatalogFileFunction · 0.85
testSAXFunction · 0.85
xmlNewTextReaderFilenameFunction · 0.85
xmlTextReaderCloseFunction · 0.85
xmlTextReaderSetupFunction · 0.85
xmlReaderForMemoryFunction · 0.85
xmlReaderForFdFunction · 0.85
xmlReaderForIOFunction · 0.85
xmlReaderNewWalkerFunction · 0.85
xmlFreeInputStreamFunction · 0.85
xmlNewInputInternalFunction · 0.85
xmlNewInputFromFileFunction · 0.85

Calls 2

xmlBufFreeFunction · 0.85
xmlCharEncCloseFuncFunction · 0.85

Tested by

no test coverage detected