* xmlFreeInputStream: * @input: an xmlParserInputPtr * * Free up an input stream. */
| 1498 | * Free up an input stream. |
| 1499 | */ |
| 1500 | void |
| 1501 | xmlFreeInputStream(xmlParserInputPtr input) { |
| 1502 | if (input == NULL) return; |
| 1503 | |
| 1504 | if (input->filename != NULL) xmlFree((char *) input->filename); |
| 1505 | if (input->version != NULL) xmlFree((char *) input->version); |
| 1506 | if ((input->free != NULL) && (input->base != NULL)) |
| 1507 | input->free((xmlChar *) input->base); |
| 1508 | if (input->buf != NULL) |
| 1509 | xmlFreeParserInputBuffer(input->buf); |
| 1510 | xmlFree(input); |
| 1511 | } |
| 1512 | |
| 1513 | /** |
| 1514 | * xmlNewInputStream: |
no test coverage detected