git://wimlib.net
/
wimlib
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b53f64c
)
xml.c: Use xmlFree() for memory allocated by libxml2
author
Eric Biggers
<ebiggers3@gmail.com>
Sun, 25 Jan 2015 01:47:28 +0000
(19:47 -0600)
committer
Eric Biggers
<ebiggers3@gmail.com>
Sun, 25 Jan 2015 01:47:28 +0000
(19:47 -0600)
src/xml.c
patch
|
blob
|
history
diff --git
a/src/xml.c
b/src/xml.c
index be5a3f80a7a1dd851bfad3508f942768f665279f..382500597164321ec3e0b5e172c58a811d5131ce 100644
(file)
--- 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;
}