]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Fix crash with cleanup
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 16 Oct 2012 09:15:04 +0000 (11:15 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 16 Oct 2012 09:15:04 +0000 (11:15 +0200)
commit280b8c9e7c94db1decdca08d169c88554c09fa19
tree16c8fba8e40fc619f4ad68759fbdea98f6861b23
parent6676c1fc8fb297de998f96862cbe2396355b2777
conf: Fix crash with cleanup

There was a crash possible when both <boot dev... and <boot
order... were specified due to virDomainDefParseBootXML() erroring out
before setting *tmp (which was free'd in cleanup).  As a fix, I
created this cleanup that uses one pointer for all the temporary
stored XPath strings and values, plus this pointer is correctly
initialized to NULL.
src/conf/domain_conf.c