Fix a memory leak in the snapshot code in libvirtd.
Fix a memory leak in the snapshot code in libvirtd.

While running libvirtd under valgrind and doing some
snapshot testing I noticed that we would always leak a
connection reference.  The problem was actually that we
were leaking a domain reference in the libvirtd remote
snapshot code, which was in turn causing a leaked
connection reference.  Fix the situation by explicitly
taking and dropping a domain reference where we need it.

Signed-off-by: Chris Lalancette <60b62644009db6b194cc0445b64e9b27bb26433a@redhat.com>

nertpinx/libvirt,siboulet/libvirt-openvz,novel/fbsd-libvirt,zhlcindy/libvirt-1.1.4-maintain,cbosdo/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,cbosdo/libvirt,rmarwaha/libvirt1,elmarco/libvirt,rbu/libvirt,agx/libvirt,eskultety/libvirt,rmarwaha/libvirt1,foomango/libvirt,olafhering/libvirt,novel/fbsd-libvirt,trainstack/libvirt,emaste/libvirt,agx/libvirt,crobinso/libvirt,novel/fbsd-libvirt,jardasgit/libvirt,warewolf/libvirt,taget/libvirt,rlaager/libvirt,kantai/libvirt-vfork,foomango/libvirt,foomango/libvirt,foomango/libvirt,eskultety/libvirt,dumbbell/libvirt,novel/fbsd-libvirt,rlaager/libvirt,rmarwaha/libvirt1,nertpinx/libvirt,danwent/libvirt-ovs,bjzhang/libvirt,taget/libvirt,jeckersb/libvirt,siboulet/libvirt-openvz,amery/libvirt-vserver,shugaoye/libvirt,shugaoye/libvirt,dumbbell/libvirt,cbosdo/libvirt,fabianfreyer/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,usc-isi/libvirt,rbu/libvirt,amery/libvirt-vserver,olafhering/libvirt,zhlcindy/libvirt-1.1.4-maintain,shugaoye/libvirt,andreabolognani/libvirt,wiedi/libvirt,cbosdo/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,fabianfreyer/libvirt,wiedi/libvirt,datto/libvirt,novel/fbsd-libvirt,fabianfreyer/libvirt,eskultety/libvirt,shugaoye/libvirt,elmarco/libvirt,jfehlig/libvirt,taget/libvirt,danwent/libvirt-ovs,cbosdo/libvirt,agx/libvirt,wiedi/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,soulxu/libvirt-xuhj,crobinso/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,VenkatDatta/libvirt,zippy2/libvirt,danwent/libvirt-ovs,emaste/libvirt,nertpinx/libvirt,dumbbell/libvirt,siboulet/libvirt-openvz,foomango/libvirt,wiedi/libvirt,fabianfreyer/libvirt,warewolf/libvirt,rlaager/libvirt,wiedi/libvirt,dumbbell/libvirt,soulxu/libvirt-xuhj,leilihh/libvirt,dumbbell/libvirt,emaste/libvirt,jfehlig/libvirt,iam-TJ/libvirt,jeckersb/libvirt,iam-TJ/libvirt,taget/libvirt,rmarwaha/libvirt,rmarwaha/libvirt,zippy2/libvirt,libvirt/libvirt,leilihh/libvirt,warewolf/libvirt,usc-isi/libvirt,rmarwaha/libvirt1,novel/fbsd-libvirt,datto/libvirt,warewolf/libvirt,wiedi/libvirt,datto/libvirt,rmarwaha/libvirt,jardasgit/libvirt,leilihh/libvirt,rmarwaha/libvirt,rmarwaha/libvirt,jeckersb/libvirt,elmarco/libvirt,rmarwaha/libvirt1,shugaoye/libvirt,zhlcindy/libvirt-1.1.4-maintain,bjzhang/libvirt,rbu/libvirt,zippy2/libvirt,eskultety/libvirt,trainstack/libvirt,iam-TJ/libvirt,kantai/libvirt-vfork,bjzhang/libvirt,rbu/libvirt,soulxu/libvirt-xuhj,trainstack/libvirt,zippy2/libvirt,elmarco/libvirt,soulxu/libvirt-xuhj,rlaager/libvirt,trainstack/libvirt,novel/fbsd-libvirt,VenkatDatta/libvirt,wiedi/libvirt,datto/libvirt,crobinso/libvirt,agx/libvirt,leilihh/libvirt,jardasgit/libvirt,warewolf/libvirt,warewolf/libvirt,jardasgit/libvirt,jeckersb/libvirt,amery/libvirt-vserver,warewolf/libvirt,rbu/libvirt,libvirt/libvirt,emaste/libvirt,emaste/libvirt,iam-TJ/libvirt,zhlcindy/libvirt-1.1.4-maintain,taget/libvirt,zhlcindy/libvirt-1.1.4-maintain,dumbbell/libvirt,rmarwaha/libvirt,VenkatDatta/libvirt,iam-TJ/libvirt,amery/libvirt-vserver,amery/libvirt-vserver,andreabolognani/libvirt,andreabolognani/libvirt,nertpinx/libvirt,rmarwaha/libvirt1,jeckersb/libvirt,nertpinx/libvirt,siboulet/libvirt-openvz,novel/fbsd-libvirt,datto/libvirt,danwent/libvirt-ovs,trainstack/libvirt,jeckersb/libvirt,kantai/libvirt-vfork,jfehlig/libvirt,crobinso/libvirt,usc-isi/libvirt,emaste/libvirt,usc-isi/libvirt,emaste/libvirt,trainstack/libvirt,usc-isi/libvirt,bjzhang/libvirt,libvirt/libvirt,rlaager/libvirt,leilihh/libvirt,iam-TJ/libvirt,jardasgit/libvirt,kantai/libvirt-vfork,olafhering/libvirt,olafhering/libvirt,jeckersb/libvirt,siboulet/libvirt-openvz,andreabolognani/libvirt,elmarco/libvirt,iam-TJ/libvirt,agx/libvirt,soulxu/libvirt-xuhj,danwent/libvirt-ovs,jfehlig/libvirt,kantai/libvirt-vfork,bjzhang/libvirt,andreabolognani/libvirt,VenkatDatta/libvirt,VenkatDatta/libvirt,eskultety/libvirt,fabianfreyer/libvirt,leilihh/libvirt,trainstack/libvirt,novel/fbsd-libvirt,libvirt/libvirt