Fix closedir usage in virNumaGetPages
Fix closedir usage in virNumaGetPages

virNumaGetPages calls closedir(dir) in cleanup and dir could
be NULL if we jump there from the failed opendir() call.

While it's not harmful on Linux, FreeBSD libc crashes [1], so
make sure that dir is not NULL before calling closedir.

1: http://lists.freebsd.org/pipermail/freebsd-standards/2014-January/002704.html

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