Browse Source

Fixed memory leak

master
ooxi 12 years ago
parent
commit
3d2d9b3473
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/xml.c

+ 2
- 0
src/xml.c View File

@@ -654,6 +654,8 @@ struct xml_document* xml_parse_document(uint8_t* buffer, size_t length) {
* [PUBLIC API]
*/
void xml_document_free(struct xml_document* document, _Bool free_buffer) {
xml_node_free(document->root);

if (free_buffer) {
free(document->buffer.buffer);
}


Loading…
Cancel
Save