MCPcopy Create free account
hub / github.com/acl-dev/acl / acl_xml2_free

Function acl_xml2_free

lib_acl/src/xml/acl_xml2.c:515–535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513}
514
515int acl_xml2_free(ACL_XML2 *xml)
516{
517 int node_cnt = xml->node_cnt;
518
519 acl_htable_free(xml->id_table, NULL);
520
521#ifdef ACL_UNIX
522 if (xml->fd >= 0)
523#else
524 if (xml->fd != ACL_FILE_INVALID)
525#endif
526 acl_file_close(xml->fd);
527
528 if (xml->vbuf_inner != NULL)
529 acl_vstring_free(xml->vbuf_inner);
530
531 if (xml->dbuf_inner != NULL)
532 acl_dbuf_pool_destroy(xml->dbuf_inner);
533
534 return node_cnt - 1;
535}
536
537void acl_xml2_reset(ACL_XML2 *xml)
538{

Callers 7

parse_xml_benchmarkFunction · 0.85
parse_xml_fileFunction · 0.85
parse_xmlFunction · 0.85
test1Function · 0.85
build_xmlFunction · 0.85
parse_xml_fileFunction · 0.85
~xml2Method · 0.85

Calls 4

acl_htable_freeFunction · 0.85
acl_file_closeFunction · 0.85
acl_vstring_freeFunction · 0.85
acl_dbuf_pool_destroyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…