Re: [libvirt] [PATCH] conf: Plug memory leaks on virDomainDiskDefParseXML

2012-04-05 Thread Alex Jia
On 04/05/2012 05:19 PM, Osier Yang wrote: On 2012年04月05日 17:17, Alex Jia wrote: Detected by valgrind. Leaks are introduced in commit b22eaa7. * src/conf/domain_conf.c (virDomainDiskDefParseXML): fix memory leaks. How to reproduce? % make&& make -C tests check TESTS=qemuxml2argvtest % cd test

Re: [libvirt] [PATCH] conf: Plug memory leaks on virDomainDiskDefParseXML

2012-04-05 Thread Osier Yang
On 2012年04月05日 17:17, Alex Jia wrote: Detected by valgrind. Leaks are introduced in commit b22eaa7. * src/conf/domain_conf.c (virDomainDiskDefParseXML): fix memory leaks. How to reproduce? % make&& make -C tests check TESTS=qemuxml2argvtest % cd tests&& valgrind -v --leak-check=full ./qemuxm

[libvirt] [PATCH] conf: Plug memory leaks on virDomainDiskDefParseXML

2012-04-05 Thread Alex Jia
Detected by valgrind. Leaks are introduced in commit b22eaa7. * src/conf/domain_conf.c (virDomainDiskDefParseXML): fix memory leaks. How to reproduce? % make && make -C tests check TESTS=qemuxml2argvtest % cd tests && valgrind -v --leak-check=full ./qemuxml2argvtest actual result: ==2143== 12