network: cleanup range loop in networkDnsmasqConfContents
network: cleanup range loop in networkDnsmasqConfContents

This loop had automatic variable definitions mixed with code. This
patch moves the definitions to the top of the function and puts
cleanup for them at the bottom. No functional change.

Part of fix for: https://bugzilla.redhat.com/show_bug.cgi?id=985653

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