Fix memory leak while scanning snapshots
Fix memory leak while scanning snapshots

If a snapshot with the name already exists, virDomainSnapshotAssignDef()
just returns NULL, in which case the snapshot definition is leaked.
Currently this leak is not a big problem, since qemuDomainSnapshotLoad()
is only called once during initial startup of libvirtd.

Signed-off-by: Philipp Hahn <8cb7a2c205789112a9f61bc3102305826b6a8db1@univention.de>

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