Re: [libvirt] [PATCH 1/2] tests: avoid memory leak on testTLSSessionInit

2011-09-08 Thread Eric Blake
On 09/04/2011 04:48 PM, Alex Jia wrote: * tests/virnettlscontexttest: fix memory leak on virnettlscontext test case. * Detected in valgrind run: +++ b/tests/virnettlscontexttest.c @@ -712,6 +712,8 @@ static int testTLSSessionInit(const void *opaque) cleanup: virNetTLSContextFree(serve

[libvirt] [PATCH 1/2] tests: avoid memory leak on testTLSSessionInit

2011-09-04 Thread ajia
* tests/virnettlscontexttest: fix memory leak on virnettlscontext test case. * Detected in valgrind run: ==25667== ==25667== 86,651 (34,680 direct, 51,971 indirect) bytes in 10 blocks are definitely lost in loss record 350 of 351 ==25667==at 0x4005447: calloc (vg_replace_malloc.c:467) ==25667