Fix potential crash when saving guests
Fix potential crash when saving guests

The qemudDomainSaveFlag method will call EndJob on the 'vm'
object it is passed in. This can result in the 'vm' object
being free'd if the last reference is removed. Thus no caller
of 'qemudDomainSaveFlag' must *ever* reference 'vm' again
upon return.

Unfortunately qemudDomainSave and qemuDomainManagedSave
both call 'virDomainObjUnlock', which can result in a
crash. This is non-deterministic since it involves a race
with the monitor I/O thread.

Fix this by making qemudDomainSaveFlag responsible for
calling virDomainObjUnlock instead.

* src/qemu/qemu_driver.c: Fix potential use after free
  when saving guests

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