Re: [libvirt] [PATCH] network: Avoid memory leaks on networkBuildDnsmasqArgv

2012-01-05 Thread Alex Jia
On 01/06/2012 03:11 PM, Osier Yang wrote: On 2012年01月06日 13:14, a...@redhat.com wrote: From: Alex Jia Detected by valgrind. Leaks introduced in commit 973af236. * src/network/bridge_driver.c: fix memory leaks on failure and successful path. * How to reproduce? % cd tests&& valgrind -v --le

Re: [libvirt] [PATCH] network: Avoid memory leaks on networkBuildDnsmasqArgv

2012-01-05 Thread Osier Yang
On 2012年01月06日 13:14, a...@redhat.com wrote: From: Alex Jia Detected by valgrind. Leaks introduced in commit 973af236. * src/network/bridge_driver.c: fix memory leaks on failure and successful path. * How to reproduce? % cd tests&& valgrind -v --leak-check=full ./networkxml2argvtest * Actual

[libvirt] [PATCH] network: Avoid memory leaks on networkBuildDnsmasqArgv

2012-01-05 Thread ajia
From: Alex Jia Detected by valgrind. Leaks introduced in commit 973af236. * src/network/bridge_driver.c: fix memory leaks on failure and successful path. * How to reproduce? % cd tests && valgrind -v --leak-check=full ./networkxml2argvtest * Actual result: ==2226== 3 bytes in 1 blocks are def