Linux NFS development
 help / color / mirror / Atom feed
From: tbecker@redhat.com
To: linux-nfs@vger.kernel.org
Cc: steved@redhat.com, Thiago Becker <tbecker@redhat.com>
Subject: [PATCH 2/2] rpc.gssd: Call pthread_attr_destroy before returning from start_upcall_thread
Date: Fri,  3 Jul 2026 13:39:45 -0300	[thread overview]
Message-ID: <20260703163946.2185163-3-tbecker@redhat.com> (raw)
In-Reply-To: <20260703163946.2185163-1-tbecker@redhat.com>

From: Thiago Becker <tbecker@redhat.com>

Assisted-by: Claude:claude-sonnet-4-5
Signed-off-by: Thiago Becker <tbecker@redhat.com>
---
 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


  parent reply	other threads:[~2026-07-03 16:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-03 16:39 [PATCH 0/2] rpc.gssd: Two resource leaks tbecker
2026-07-03 16:39 ` [PATCH 1/2] rpc.gssd: Decrement client referece count on error paths tbecker
2026-07-03 16:39 ` tbecker [this message]
2026-07-11 16:19 ` [PATCH 0/2] rpc.gssd: Two resource leaks Steve Dickson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260703163946.2185163-3-tbecker@redhat.com \
    --to=tbecker@redhat.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=steved@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox