about summary refs log tree commit diff
path: root/nptl/pthreadP.h
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/pthreadP.h
parentc2322a561f74b8fa41b9d9c6b8eb57e28de46f3e (diff)
downloadglibc-6993670b52daa413717e840dfb17b5322e7f4a88.tar.gz
glibc-6993670b52daa413717e840dfb17b5322e7f4a88.tar.xz
glibc-6993670b52daa413717e840dfb17b5322e7f4a88.zip
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/pthreadP.h')
-rw-r--r--nptl/pthreadP.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/nptl/pthreadP.h b/nptl/pthreadP.h
index acc8e88e4a..ed30b72923 100644
--- a/nptl/pthreadP.h
+++ b/nptl/pthreadP.h
@@ -201,6 +201,8 @@ enum
 /* Default pthread attributes.  */
 extern union pthread_attr_transparent __default_pthread_attr attribute_hidden;
 extern int __default_pthread_attr_lock attribute_hidden;
+/* Called from __libpthread_freeres to deallocate the default attribute.  */
+extern void __default_pthread_attr_freeres (void) attribute_hidden;
 
 /* Size and alignment of static TLS block.  */
 extern size_t __static_tls_size attribute_hidden;