util: netlink: define cleanup function using VIR_DEFINE_AUTOPTR_FUNC
util: netlink: define cleanup function using VIR_DEFINE_AUTOPTR_FUNC

Using the new VIR_DEFINE_AUTOPTR_FUNC macro defined in
src/util/viralloc.h, define a new wrapper around an existing
cleanup function which will be called when a variable declared
with VIR_AUTOPTR macro goes out of scope. Also, drop the redundant
viralloc.h include, since that has moved from the source module into
the header.

When a variable of type virNetlinkHandle * is declared using
VIR_AUTOPTR, the function virNetlinkFree will be run automatically
on it when it goes out of scope.

Signed-off-by: Sukrit Bhatnagar <02d85ae20d84d76725fbb98cf67368d465476907@gmail.com>
Reviewed-by: Erik Skultety <2c14d38fa47c8799f1b9c16280abe27f8edfec6e@redhat.com>

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