From 6993670b52daa413717e840dfb17b5322e7f4a88 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 19 May 2020 11:03:11 +0200 Subject: nptl: Destroy the default thread attribute as part of freeres This avoids a spurious memory leak report by valgrind. Reviewed-by: Carlos O'Donell --- nptl/pthreadP.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nptl/pthreadP.h') 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; -- cgit 1.4.1