* xmlFreeURI: * @uri: pointer to an xmlURI * * Free up the xmlURI struct */
| 1441 | * Free up the xmlURI struct |
| 1442 | */ |
| 1443 | void |
| 1444 | xmlFreeURI(xmlURIPtr uri) { |
| 1445 | if (uri == NULL) return; |
| 1446 | |
| 1447 | if (uri->scheme != NULL) xmlFree(uri->scheme); |
| 1448 | if (uri->server != NULL) xmlFree(uri->server); |
| 1449 | if (uri->user != NULL) xmlFree(uri->user); |
| 1450 | if (uri->path != NULL) xmlFree(uri->path); |
| 1451 | if (uri->fragment != NULL) xmlFree(uri->fragment); |
| 1452 | if (uri->opaque != NULL) xmlFree(uri->opaque); |
| 1453 | if (uri->authority != NULL) xmlFree(uri->authority); |
| 1454 | if (uri->query != NULL) xmlFree(uri->query); |
| 1455 | if (uri->query_raw != NULL) xmlFree(uri->query_raw); |
| 1456 | xmlFree(uri); |
| 1457 | } |
| 1458 | |
| 1459 | /************************************************************************ |
| 1460 | * * |
no outgoing calls