Re: [PATCH] nfsidmap: Fix a memory leak

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 7/22/24 5:32 AM, Steve Dickson wrote:
Reported-by: Zhang Yaqi <zhangyaqi@xxxxxxxxxx>
Signed-off-by: Steve Dickson <steved@xxxxxxxxxx>
Committed...

steved.
---
  support/nfsidmap/umich_ldap.c | 1 +
  1 file changed, 1 insertion(+)

diff --git a/support/nfsidmap/umich_ldap.c b/support/nfsidmap/umich_ldap.c
index 1aa2af49..0f88ba44 100644
--- a/support/nfsidmap/umich_ldap.c
+++ b/support/nfsidmap/umich_ldap.c
@@ -200,6 +200,7 @@ static int set_krb5_ccname(const char *krb5_ccache_name)
  		IDMAP_LOG(5, ("Failed to set creds cache for kerberos, err(%d)",
  			      retval));
  	}
+	free(env);
  #endif /* else HAVE_GSS_KRB5_CCACHE_NAME */
  out:
  	return retval;





[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux