[libvirt] [PATCH 1/2] tests: avoid memory leak on testTLSSessionInit
Eric Blake
eblake at redhat.com
Thu Sep 8 10:14:34 UTC 2011
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(serverCtxt);
> virNetTLSContextFree(clientCtxt);
> + virNetTLSSessionFree(serverSess);
> + virNetTLSSessionFree(clientSess);
Test leaks are not the end of the world, but they are also okay for
pushing post-freeze. ACK and pushed.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
More information about the libvir-list
mailing list