aboutsummaryrefslogtreecommitdiff
path: root/resolv/res-close.c
diff options
context:
space:
mode:
Diffstat (limited to 'resolv/res-close.c')
-rw-r--r--resolv/res-close.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/resolv/res-close.c b/resolv/res-close.c
index 38572b1d2f..1c36dd5f1d 100644
--- a/resolv/res-close.c
+++ b/resolv/res-close.c
@@ -140,4 +140,5 @@ __res_thread_freeres (void)
/* Make sure we do a full re-initialization the next time. */
_res.options = 0;
}
+/* Also must be called when the main thread exits. */
text_set_element (__libc_subfreeres, __res_thread_freeres);