git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fc6dde
)
Fix memory leak (xptype XPath obj) in add-domain API.
author
Richard W.M. Jones
<rjones@redhat.com>
Thu, 25 Nov 2010 15:36:57 +0000
(15:36 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Thu, 25 Nov 2010 15:40:55 +0000
(15:40 +0000)
src/virt.c
patch
|
blob
|
history
diff --git
a/src/virt.c
b/src/virt.c
index
8911148
..
ab38c36
100644
(file)
--- a/
src/virt.c
+++ b/
src/virt.c
@@
-206,6
+206,7
@@
guestfs___add_libvirt_dom (guestfs_h *g, virDomainPtr dom,
assert (xptype->nodesetval->nodeTab[0]);
assert (xptype->nodesetval->nodeTab[0]->type == XML_ATTRIBUTE_NODE);
xmlAttrPtr attr = (xmlAttrPtr) xptype->nodesetval->nodeTab[0];
+ xmlXPathFreeObject (xptype);
char *type = (char *) xmlNodeListGetString (doc, attr->children, 1);
xmlXPathObjectPtr xpfilename;