Subject: | memory leak |
Date: | Fri, 1 Oct 2010 21:21:11 -0400 |
From: | "Arlene Berry" <aberry@likewise.com> |
To: | <krb5-bugs@mit.edu> |
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?