resolv: fix memory leak when using libresolv
QEMU only uses libresolv for iOS (where access to /etc/resolv.conf
is restricted). There was a bug where res_nclose
was called instead of res_ndestroy
which leaked a few bytes of memory in state
every time it was called.