[PATCH 2/2] rpc.gssd: Call pthread_attr_destroy before returning from start_upcall_thread

[email protected]
Newsgroups gmane.linux.nfs
Message-ID <[email protected]>
From: Thiago Becker <[email protected]>

Assisted-by: Claude:claude-sonnet-4-5
Signed-off-by: Thiago Becker <[email protected]>
---
 utils/gssd/gssd_proc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/utils/gssd/gssd_proc.c b/utils/gssd/gssd_proc.c
index 27b6fe4f..d59c8a19 100644
--- a/utils/gssd/gssd_proc.c
+++ b/utils/gssd/gssd_proc.c
@@ -984,6 +984,7 @@ start_upcall_thread(void (*func)(struct clnt_upcall_info *), struct clnt_upcall_
 	tinfo->timeout.tv_sec += upcall_timeout;
 	TAILQ_INSERT_TAIL(&active_thread_list, tinfo, list);
 	pthread_mutex_unlock(&active_thread_list_lock);
+	pthread_attr_destroy(&attr);
 
 	return ret;
 }
-- 
2.54.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.