Skip to contentSkip to conversation

nfsidmap: Fix a memory leak

PATCH In review Steve Dickson 1 participant 2 messages Jul 22, 2024 – Jul 23, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfsidmap: Fix a memory leak

---
 support/nfsidmap/umich_ldap.c | 1 +
 1 file changed, 1 insertion(+)
support/nfsidmap/umich_ldap.c +1 -0
index 1aa2af49..0f88ba44 100644
@@ -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
#1 lore raw
Quoted 2 lines · Steve Dickson

Committed...

steved.

Quoted 16 lines
---
  support/nfsidmap/umich_ldap.c | 1 +
  1 file changed, 1 insertion(+)
support/nfsidmap/umich_ldap.c +1 -0
index 1aa2af49..0f88ba44 100644
@@ -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;