]> wimlib.net Git - wimlib/blobdiff - src/xml.c
xml.c: Use xmlFree() for memory allocated by libxml2
[wimlib] / src / xml.c
index 1dd4d8398a7efa573b3b43c0060126411d283568..382500597164321ec3e0b5e172c58a811d5131ce 100644 (file)
--- a/src/xml.c
+++ b/src/xml.c
@@ -25,6 +25,7 @@
 #  include "config.h"
 #endif
 
+#include "wimlib/assert.h"
 #include "wimlib/dentry.h"
 #include "wimlib/encoding.h"
 #include "wimlib/error.h"
@@ -490,7 +491,7 @@ xml_read_image_info(xmlNode *image_node, struct image_info *image_info)
        index_prop = xmlGetProp(image_node, "INDEX");
        if (index_prop) {
                image_info->index = atoi(index_prop);
-               FREE(index_prop);
+               xmlFree(index_prop);
        } else {
                image_info->index = 1;
        }