libxl: Don't free def member of virDomainObj
libxl: Don't free def member of virDomainObj

The refactoring in commit de49d5bad3 accidentally dropped the statement
setting def to NULL after successfully adding it to the virDomainObjList,
causing it to be freed while still in use. The resulting memory
corruption caused unpredictable behavior, often resulting in a libvirtd
crash.

Signed-off-by: Jim Fehlig <39929b5b86d72d51fceac59b52303e3fe8a3083e@suse.com>
Reviewed-by: Jiri Denemark <62bdf77dc47919a4d59a91822129d14633cfca81@redhat.com>
Reviewed-by: Neal Gompa <8135daa3762340227c0c67f1c47ad07a127bd3a3@gmail.com>

nertpinx/libvirt,crobinso/libvirt,jfehlig/libvirt,jardasgit/libvirt,jardasgit/libvirt,nertpinx/libvirt,libvirt/libvirt,libvirt/libvirt,olafhering/libvirt,crobinso/libvirt,olafhering/libvirt,olafhering/libvirt,jfehlig/libvirt,zippy2/libvirt,libvirt/libvirt,jardasgit/libvirt,zippy2/libvirt,jardasgit/libvirt,zippy2/libvirt,jfehlig/libvirt,jardasgit/libvirt,zippy2/libvirt,nertpinx/libvirt,nertpinx/libvirt,jfehlig/libvirt,olafhering/libvirt,crobinso/libvirt,nertpinx/libvirt,crobinso/libvirt,libvirt/libvirt