Question about freeing memory when using krb5_get_credentials
Markus Moeller
huaraz at moeller.plus.com
Sun Jun 10 16:51:43 EDT 2007
I am using a call to krb5_get_credentials which seems to create a memory
leak. If I look into
prof_get.c it says profile_free_list() would be the public exportable
function to free the memory,
but how do I get the pointer to the memory to free ?
Thanks
Markus
==17250== 2 bytes in 1 blocks are definitely lost in loss record 1 of 30
==17250== at 0x40233F0: malloc (in
/usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==17250== by 0x4159D21: add_to_list (prof_get.c:88)
==17250== by 0x4159EEE: profile_get_values (prof_get.c:152)
==17250== by 0x413EA15: krb5_walk_realm_tree (walk_rtree.c:160)
==17250== by 0x4125582: init_rtree (gc_frm_kdc.c:339)
==17250== by 0x4125DF3: do_traversal (gc_frm_kdc.c:710)
==17250== by 0x4126233: krb5_get_cred_from_kdc_opt (gc_frm_kdc.c:855)
==17250== by 0x4126AF3: krb5_get_cred_from_kdc (gc_frm_kdc.c:1154)
==17250== by 0x41278D9: krb5_get_credentials (get_creds.c:144)
==17250== by 0x804B2A8: krb5_create_cache (support_krb5.c:252)
More information about the Kerberos
mailing list