nfsidmap: Fix a memory leak
Subsystems (2)
PATCH 1/1 nfsidmap: Fix a memory leak
Reported-by Zhang Yaqi <[email protected]>
Signed-off-by Steve Dickson <[email protected]>
--- support/nfsidmap/umich_ldap.c | 1 + 1 file changed, 1 insertion(+)
support/nfsidmap/umich_ldap.c +1 -0
@@ -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;
Signature · 1 line
2.45.2
Quoted 2 lines · Steve Dickson
Reported-by Zhang Yaqi <[email protected]>Signed-off-by Steve Dickson <[email protected]>
Committed...
steved.
Quoted 16 lines
--- support/nfsidmap/umich_ldap.c | 1 + 1 file changed, 1 insertion(+)support/nfsidmap/umich_ldap.c +1
-0@@ -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;