]> xenbits.xensource.com Git - libvirt.git/commit
virnettlscontexttest: Resolve memory leak found by Valgrind
authorJohn Ferlan <jferlan@redhat.com>
Sun, 3 Feb 2013 14:52:02 +0000 (09:52 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 7 Feb 2013 19:08:13 +0000 (14:08 -0500)
commit0eb62708a7cbd4e42d2ccb0b5d0c78ba93dd732e
treeade3a818fc0bc7179c67b52e7302cd0dc362c1e6
parent7f5c285082978dd49627f43fee636dcd23dbde48
virnettlscontexttest: Resolve memory leak found by Valgrind

testTLSDerEncode() will allocate memory for der.data, it wasn't VIR_FREE()'d.
also don't initialized der to use static buffer.
tests/virnettlscontexttest.c