Fix a reference leak for node devices.
Fix a reference leak for node devices.

There were some major, and some minor bugs having to do with
the reference counting of node devices in daemon/remote.c.

Some functions were completely failing to unreference node devices;
this would lead to many open file descriptors, which would eventually
fail.

The minor bugs were along the same lines, but were in rarely
used error paths.

Signed-off-by: Chris Lalancette <60b62644009db6b194cc0445b64e9b27bb26433a@redhat.com>
Signed-off-by: Matthias Bolte <c6e6488d214fff527698d2a865d2c6ede2d17cda@googlemail.com>

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