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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]