aboutsummaryrefslogtreecommitdiff
path: root/nptl/nptlfreeres.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-05-19 11:03:11 +0200
committerFlorian Weimer <fweimer@redhat.com>2020-06-02 10:32:47 +0200
commit6993670b52daa413717e840dfb17b5322e7f4a88 (patch)
tree9e81fc9519354381a3d62c47f89cf9bb053e6f68 /nptl/nptlfreeres.c
parentc2322a561f74b8fa41b9d9c6b8eb57e28de46f3e (diff)
downloadglibc-6993670b52daa413717e840dfb17b5322e7f4a88.zip
glibc-6993670b52daa413717e840dfb17b5322e7f4a88.tar.gz
glibc-6993670b52daa413717e840dfb17b5322e7f4a88.tar.bz2
nptl: Destroy the default thread attribute as part of freeres
This avoids a spurious memory leak report by valgrind. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'nptl/nptlfreeres.c')
-rw-r--r--nptl/nptlfreeres.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nptl/nptlfreeres.c b/nptl/nptlfreeres.c
index dda11e5..07aa34a 100644
--- a/nptl/nptlfreeres.c
+++ b/nptl/nptlfreeres.c
@@ -25,6 +25,7 @@
void
__libpthread_freeres (void)
{
+ call_function_static_weak (__default_pthread_attr_freeres);
call_function_static_weak (__nptl_stacks_freeres);
call_function_static_weak (__shm_directory_freeres);
call_function_static_weak (__nptl_unwind_freeres);