Skip Menu |
 

To: krb5-bugs@mit.edu
Subject: krb__get_srvtab_name leaks memory
Date: Tue, 25 Feb 2003 11:42:38 -0500 (EST)
From: hartmans@MIT.EDU (Sam Hartman)


Each call to the keyfile macro in krb.h will strdup a copy of the
srvtab name. Since this macro appears to be a variable not a
function, the caller is unlikely to free the memory.
From: tlyu@mit.edu
Subject: CVS Commit
* g_cnffile.c (krb__get_srvtabname): Keep strdup()ed string in a
static variable and free it called again; this prevents a memory
leak.


To generate a diff of this commit:



cvs diff -r1.170 -r1.171 krb5/src/lib/krb4/ChangeLog
cvs diff -r1.9 -r1.10 krb5/src/lib/krb4/g_cnffile.c