]> git.ipfire.org Git - thirdparty/libvirt.git/commit
bhyve: fix memory leaks in bhyvexml2argvtest
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Sun, 13 Nov 2016 10:01:34 +0000 (13:01 +0300)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Tue, 15 Nov 2016 16:07:48 +0000 (19:07 +0300)
commita6b81d558134110c9c0aaeb287b11dbada526d06
tree6f4330ced632148b6a8dccf089447561e56975b8
parent9b39a9dcf4a4793c36db379199897bf21e92bb5f
bhyve: fix memory leaks in bhyvexml2argvtest

 * virNetDevTapCreateInBridgePort() mock: free '*ifname' before
   strdupping a hardoded value to it
 * testCompareXMLToArgvFiles(): unref 'conn' object in cleanup
 * testCompareXMLToArgvHelper(): free 'ldargs' and 'dmargs' in
   cleanup
tests/bhyvexml2argvmock.c
tests/bhyvexml2argvtest.c