[22522] in Kerberos
Re: Memory leaks in krb5?
daemon@ATHENA.MIT.EDU (Derrick Schommer)
Tue Sep 21 16:15:37 2004
From: Derrick Schommer <schommer@gmail.com>
Message-ID: <c0O3d.4210$Co1.1344@trnddc02>
Date: Tue, 21 Sep 2004 04:22:32 GMT
To: kerberos@mit.edu
Errors-To: kerberos-bounces@mit.edu
And how about this one, I think this is one of the last issues I've got
lined up:
==20711== 28 bytes in 1 blocks are definitely lost in loss record 8 of 10
==20711== at 0x1B902A90: malloc (vg_replace_malloc.c:131)
==20711== by 0x13CA8F: krb5_copy_principal (in /usr/lib/libkrb5.so.3.2)
==20711== by 0x1405B5: (within /usr/lib/libkrb5.so.3.2)
==20711== by 0x1416BB: krb5_get_init_creds (in /usr/lib/libkrb5.so.3.2)
==20711== by 0x142837: krb5_get_init_creds_password (in
/usr/lib/libkrb5.so.3.2)
I call get_init_creds_password:
krb5_get_init_creds_password( *m_kContext->context(),
&m_clientCreds,
clientPrincipal,
(char * )szPassword.c_str(),
NULL,
NULL,
0,
NULL,
&options ) );
And later I do:
krb5_free_cred_contents( *m_kContext->context(), &m_clientCreds );
and:
krb5_free_principal( *m_kContext->context(), clientPrincipal );
Is there something I'm missing here? I pass the m_clientCreds, and the
clientPrincipal and I deleted both of them (how I believe its proper),
but there is a leak in krb5_copy_principal() and I'm not sure how/why...
Thanks,
Derrick
________________________________________________
Kerberos mailing list Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos