[krbdev.mit.edu #6793] memory leak 
     Arlene Berry  via RT 
    rt-comment at krbdev.mit.edu
       
    Mon Oct  4 14:07:05 EDT 2010
    
    
  
We've got a report of memory being leaked in
src/lib/gssapi/krb5/acquire_cred.c.  It looks like the problem is that
kg_init_name is being called on names with KG_INIT_NAME_INTERN set but
when kg_release_name is called on error paths there are no flags set.
This means that names are added to an internal database but never
removed from it and the associated memory is never freed.  It looks like
the version of this code in trunk has been refactored and multiple uses
of kg_release_name have been replaced with a single use but both
versions call it without flags.  Since this internal database is new to
me I'm not certain I understand it's purpose well enough to fix this.
Should the kg_release_name calls be changed to pass the flag?
    
    
More information about the krb5-bugs
mailing list