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

Function xmlBufferFree

ThirdParty/libxml2/vtklibxml2/tree.c:7230–7243  ·  view source on GitHub ↗

* xmlBufferFree: * @buf: the buffer to free * * Frees an XML buffer. It frees both the content and the structure which * encapsulate it. */

Source from the content-addressed store, hash-verified

7228 * encapsulate it.
7229 */
7230void
7231xmlBufferFree(xmlBufferPtr buf) {
7232 if (buf == NULL) {
7233 return;
7234 }
7235
7236 if ((buf->alloc == XML_BUFFER_ALLOC_IO) &&
7237 (buf->contentIO != NULL)) {
7238 xmlFree(buf->contentIO);
7239 } else if (buf->content != NULL) {
7240 xmlFree(buf->content);
7241 }
7242 xmlFree(buf);
7243}
7244
7245/**
7246 * xmlBufferEmpty:

Callers 6

closeFileMethod · 0.85
launchTestsFunction · 0.85
xsdIncorrectTestCaseFunction · 0.85
installResourcesFunction · 0.85
xsdTestCaseFunction · 0.85
DupBufferMethod · 0.85

Calls

no outgoing calls

Tested by 1

launchTestsFunction · 0.68