Re: [libvirt] [PATCH] daemon: Plug memory leaks

2012-04-12 Thread Alex Jia
On 04/12/2012 04:37 PM, Daniel P. Berrange wrote: On Thu, Apr 12, 2012 at 03:24:08PM +0800, Alex Jia wrote: Detected by valgrind. Leaks are introduced in commit 6e6e9be. * daemon/libvirtd-config.c (macro GET_CONF_STR): fix memory leaks. How to reproduce? % make&& make -C tests check TESTS=li

Re: [libvirt] [PATCH] daemon: Plug memory leaks

2012-04-12 Thread Daniel P. Berrange
On Thu, Apr 12, 2012 at 03:24:08PM +0800, Alex Jia wrote: > Detected by valgrind. Leaks are introduced in commit 6e6e9be. > > * daemon/libvirtd-config.c (macro GET_CONF_STR): fix memory leaks. > > How to reproduce? > > % make && make -C tests check TESTS=libvirtdconftest > % cd tests && valgrind

[libvirt] [PATCH] daemon: Plug memory leaks

2012-04-12 Thread Alex Jia
Detected by valgrind. Leaks are introduced in commit 6e6e9be. * daemon/libvirtd-config.c (macro GET_CONF_STR): fix memory leaks. How to reproduce? % make && make -C tests check TESTS=libvirtdconftest % cd tests && valgrind -v --leak-check=full ./libvirtdconftest actual result: ==11008== 185 by