virNWFilterIncludeDefToRuleInst: Refactor cleanup
virNWFilterIncludeDefToRuleInst: Refactor cleanup

Use automatic memory freeing for 'tmpvars' and move the allocation of
tmpvars earlier so that we are guaranteed that 'obj' will always be
appended to 'inst->filters' and thus don't need cleanup for it.

By moving the reset of 'inst' to the block when virNWFilterDefToInst
fails we can get rid of the rest of the cleanup section and remove the
'ret' variable.

Signed-off-by: Peter Krempa <2cf5c04c61aa466e4a47bfedc747d17279c72ffc@redhat.com>
Reviewed-by: Michal Privoznik <83d82aaba2eed257f4814b0c239c260c4caaadf0@redhat.com>

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