diff options
Diffstat (limited to 'resolv/res_data.c')
-rw-r--r-- | resolv/res_data.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/resolv/res_data.c b/resolv/res_data.c index 1beea1dc4f..adadcdcd7a 100644 --- a/resolv/res_data.c +++ b/resolv/res_data.c @@ -246,9 +246,7 @@ res_close(void) { if ((_res.options & RES_INIT) == 0) return; #endif - /* We don't free the name server addresses because we never - did it and it would be done implicitly on shutdown. */ - __res_iclose(&_res, false); + res_nclose(&_res); } #ifdef BIND_UPDATE |