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 1/2] rpc.gssd: Decrement client referece count on error paths
Date: Fri,  3 Jul 2026 13:39:44 -0300	[thread overview]
Message-ID: <20260703163946.2185163-2-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 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/utils/gssd/gssd_proc.c b/utils/gssd/gssd_proc.c
index e060bee3..27b6fe4f 100644
--- a/utils/gssd/gssd_proc.c
+++ b/utils/gssd/gssd_proc.c
@@ -897,6 +897,9 @@ out_srchost:
 	if (info->srchost)
 		free(info->srchost);
 out_info:
+	pthread_mutex_lock(&clp_lock);
+	clp->refcount--;
+	pthread_mutex_unlock(&clp_lock);
 	free(info);
 	info = NULL;
 	goto out;
-- 
2.54.0


  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 ` tbecker [this message]
2026-07-03 16:39 ` [PATCH 2/2] rpc.gssd: Call pthread_attr_destroy before returning from start_upcall_thread tbecker
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-2-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