interface: Consume @def in virInterfaceObjNew
interface: Consume @def in virInterfaceObjNew

Move the consumption of @def in virInterfaceObjNew and then handle that
in the error path of virInterfaceObjListAssignDef since it's caller expects
to need to free @def when NULL is returned and so would virInterfaceObjFree.

Signed-off-by: John Ferlan <87558058f6f829e5ec976c8ef960720af4ff9c7d@redhat.com>

fabianfreyer/libvirt,datto/libvirt,VenkatDatta/libvirt,eskultety/libvirt,libvirt/libvirt,eskultety/libvirt,nertpinx/libvirt,jardasgit/libvirt,VenkatDatta/libvirt,jfehlig/libvirt,olafhering/libvirt,jardasgit/libvirt,zippy2/libvirt,VenkatDatta/libvirt,VenkatDatta/libvirt,jardasgit/libvirt,eskultety/libvirt,crobinso/libvirt,datto/libvirt,eskultety/libvirt,olafhering/libvirt,zippy2/libvirt,zippy2/libvirt,nertpinx/libvirt,nertpinx/libvirt,andreabolognani/libvirt,VenkatDatta/libvirt,nertpinx/libvirt,jfehlig/libvirt,fabianfreyer/libvirt,datto/libvirt,andreabolognani/libvirt,nertpinx/libvirt,zippy2/libvirt,jfehlig/libvirt,datto/libvirt,andreabolognani/libvirt,crobinso/libvirt,jfehlig/libvirt,libvirt/libvirt,andreabolognani/libvirt,libvirt/libvirt,fabianfreyer/libvirt,olafhering/libvirt,libvirt/libvirt,datto/libvirt,olafhering/libvirt,fabianfreyer/libvirt,crobinso/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,andreabolognani/libvirt,eskultety/libvirt,crobinso/libvirt