commandtest: Resolve some coverity resource leaks
commandtest: Resolve some coverity resource leaks

taget/libvirt,nertpinx/libvirt,cbosdo/libvirt,eskultety/libvirt,iam-TJ/libvirt,cbosdo/libvirt,jfehlig/libvirt,olafhering/libvirt,shugaoye/libvirt,jardasgit/libvirt,shugaoye/libvirt,taget/libvirt,olafhering/libvirt,rlaager/libvirt,rlaager/libvirt,zippy2/libvirt,rlaager/libvirt,andreabolognani/libvirt,crobinso/libvirt,iam-TJ/libvirt,crobinso/libvirt,jfehlig/libvirt,zippy2/libvirt,eskultety/libvirt,jfehlig/libvirt,agx/libvirt,crobinso/libvirt,elmarco/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,iam-TJ/libvirt,libvirt/libvirt,andreabolognani/libvirt,datto/libvirt,jardasgit/libvirt,elmarco/libvirt,iam-TJ/libvirt,iam-TJ/libvirt,cbosdo/libvirt,taget/libvirt,siboulet/libvirt-openvz,VenkatDatta/libvirt,VenkatDatta/libvirt,shugaoye/libvirt,jardasgit/libvirt,taget/libvirt,zhlcindy/libvirt-1.1.4-maintain,cbosdo/libvirt,VenkatDatta/libvirt,zhlcindy/libvirt-1.1.4-maintain,rlaager/libvirt,zippy2/libvirt,siboulet/libvirt-openvz,jfehlig/libvirt,nertpinx/libvirt,zhlcindy/libvirt-1.1.4-maintain,VenkatDatta/libvirt,libvirt/libvirt,trainstack/libvirt,elmarco/libvirt,elmarco/libvirt,shugaoye/libvirt,eskultety/libvirt,rlaager/libvirt,olafhering/libvirt,trainstack/libvirt,zhlcindy/libvirt-1.1.4-maintain,eskultety/libvirt,trainstack/libvirt,andreabolognani/libvirt,nertpinx/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,datto/libvirt,zippy2/libvirt,iam-TJ/libvirt,agx/libvirt,trainstack/libvirt,datto/libvirt,cbosdo/libvirt,fabianfreyer/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,jardasgit/libvirt,siboulet/libvirt-openvz,libvirt/libvirt,libvirt/libvirt,fabianfreyer/libvirt,siboulet/libvirt-openvz,trainstack/libvirt,nertpinx/libvirt,shugaoye/libvirt,VenkatDatta/libvirt,zhlcindy/libvirt-1.1.4-maintain,olafhering/libvirt,datto/libvirt,eskultety/libvirt,trainstack/libvirt,datto/libvirt,crobinso/libvirt,agx/libvirt,agx/libvirt,siboulet/libvirt-openvz,agx/libvirt,iam-TJ/libvirt,trainstack/libvirt,elmarco/libvirt,taget/libvirt,fabianfreyer/libvirt