From: Eric Biggers Date: Sun, 25 Jan 2015 01:47:28 +0000 (-0600) Subject: xml.c: Use xmlFree() for memory allocated by libxml2 X-Git-Tag: v1.8.0~55 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=4bdcbacffa3e83e344cd53d9d56974dc64dd1eed xml.c: Use xmlFree() for memory allocated by libxml2 --- diff --git a/src/xml.c b/src/xml.c index be5a3f80..38250059 100644 --- a/src/xml.c +++ b/src/xml.c @@ -491,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; }