summary refs log tree commit diff
path: root/resolv/res-close.c
diff options
context:
space:
mode:
Diffstat (limited to 'resolv/res-close.c')
-rw-r--r--resolv/res-close.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/resolv/res-close.c b/resolv/res-close.c
index 73f18d1525..97da73c99c 100644
--- a/resolv/res-close.c
+++ b/resolv/res-close.c
@@ -83,6 +83,7 @@
  */
 
 #include <resolv-internal.h>
+#include <resolv_context.h>
 #include <not-cancel.h>
 
 /* Close all open sockets.  If FREE_ADDR is true, deallocate any
@@ -124,6 +125,8 @@ libc_hidden_def (__res_nclose)
 static void __attribute__ ((section ("__libc_thread_freeres_fn")))
 res_thread_freeres (void)
 {
+  __resolv_context_freeres ();
+
   if (_res.nscount == 0)
     /* Never called res_ninit.  */
     return;