29 lines
961 B
Diff
29 lines
961 B
Diff
From 131ec613bab84b7894e428375cc360bb82a336a3 Mon Sep 17 00:00:00 2001
|
|
From: Steve Dickson <steved@redhat.com>
|
|
Date: Tue, 23 Jul 2024 12:06:28 -0400
|
|
Subject: [PATCH] nfsidmap: Fix a memory leak
|
|
|
|
Reported-by: Zhang Yaqi <zhangyaqi@kylinos.cn>
|
|
Signed-off-by: Steve Dickson <steved@redhat.com>
|
|
|
|
Reference:https://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=131ec613bab84b7894e428375cc360bb82a336a3
|
|
Conflict:no
|
|
---
|
|
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 1aa2af4..0f88ba4 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;
|
|
--
|
|
1.8.3.1
|
|
|