memory leak in krb5_get_init_creds_keytab in 1.10.2 ?
Markus Moeller
huaraz at moeller.plus.com
Mon Aug 25 15:05:12 EDT 2014
Hi,
I call krb5_get_init_creds_keytab in my application and valgrind tells me
about a leak ( see below ) . It seems to be the memory allocation for
mod-modreq_p, which I think I can't clear from my application, can I ?
for (i = 0; i < context->preauth_context->n_modules; i++) {
context->preauth_context->modules[i].use_count = 0;
mod = &context->preauth_context->modules[i];
if (mod->client_req_init != NULL)
mod->client_req_init(context, mod->moddata, mod->modreq_p); <<
line 287
}
> rpm -q krb5
krb5-1.10.2-10.22.1.x86_64
==14734== 557 (48 direct, 509 indirect) bytes in 1 blocks are definitely
lost in loss record 586 of 630
==14734== at 0x4C2C27B: malloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==14734== by 0x8898E99: ???
==14734== by 0x5D875D1: krb5_preauth_request_context_init
(preauth2.c:287)
==14734== by 0x5D79A55: restart_init_creds_loop (get_in_tkt.c:716)
==14734== by 0x5D7A4C4: krb5_init_creds_init (get_in_tkt.c:1007)
==14734== by 0x5D7C226: krb5int_get_init_creds (get_in_tkt.c:1635)
==14734== by 0x5D7C710: krb5_get_init_creds_keytab (gic_keytab.c:135)
==14734== by 0x406456: krb5_create_cache(char*) (support_krb5.cc:270)
==14734== by 0x408A90: get_memberof(main_args*, char*, char*, char*)
(support_ldap.cc:869)
==14734== by 0x4056A1: check_memberof(main_args*, char*, char*)
(support_member.cc:115)
==14734== by 0x403176: main (kerberos_ldap_group.cc:400)
Is this a known issue ?
Thank you
Markus
More information about the Kerberos
mailing list