[22811] in Kerberos
Fix for memory leak in krb5 1.3.5
daemon@ATHENA.MIT.EDU (Jeremy Allison)
Thu Nov 4 16:50:29 2004
From: Jeremy Allison <jeremy.allison@hp.com>
Message-ID: <gcxid.2387$ZT1.1103@news.cpqcorp.net>
Date: Thu, 04 Nov 2004 21:30:52 GMT
To: kerberos@mit.edu
Errors-To: kerberos-bounces@mit.edu
Found using valgrind on Samba (fixing the latest salted key patch).
I couldn't find a kerberos bugzilla to send this fix to - how do
you report bugs/fixes to MIT ?
Do MIT use valgrind on Linux when developing kerberos ? It's very
good !
Jeremy Allison,
Samba Team.
--- lib/krb5/ccache/ccbase.c.orig 2004-11-04 13:18:01.000000000 -0800
+++ lib/krb5/ccache/ccbase.c 2004-11-04 13:18:08.000000000 -0800
@@ -113,6 +113,7 @@
if ( pfxlen == 1 && isalpha(name[0]) ) {
/* We found a drive letter not a prefix - use FILE: */
+ free(pfx);
pfx = strdup("FILE:");
if (!pfx)
return ENOMEM;
@@ -121,6 +122,7 @@
} else {
resid = name + pfxlen + 1;
+ free(pfx);
pfx = malloc (pfxlen+1);
if (!pfx)
return ENOMEM;
________________________________________________
Kerberos mailing list Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos