]> xenbits.xensource.com Git - libvirt.git/commit
Fix small memory leaks in config parsing related functions
authorMatthias Bolte <matthias.bolte@googlemail.com>
Sun, 24 Apr 2011 18:00:30 +0000 (20:00 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Mon, 25 Apr 2011 17:08:53 +0000 (19:08 +0200)
commitbf130d2c85fbd1cd93ed61f34bee434bc249d59f
tree9f5679a3c88cf88457a8d37f4d80a50fc8502776
parent14a961ca730d423893800004a2037e16e6a3bb2a
Fix small memory leaks in config parsing related functions

Found by 'make -C tests valgrind'.

xen_xm.c: Dummy allocation via virDomainChrDefNew is directly
overwritten and lost. Free 'script' in success path too.

vmx.c: Free virtualDev_string in success path too.

domain_conf.c: Free compression in success path too.
src/conf/domain_conf.c
src/vmx/vmx.c
src/xenxs/xen_xm.c