[27914] in Kerberos

home help back first fref pref prev next nref lref last post

Re: Question about freeing memory when using krb5_get_credentials

daemon@ATHENA.MIT.EDU (Markus Moeller)
Sun Jun 10 19:33:44 2007

To: kerberos@mit.edu
From: "Markus Moeller" <huaraz@moeller.plus.com>
Date: Mon, 11 Jun 2007 00:30:43 +0100
Message-ID: <f4i1j8$a29$1@sea.gmane.org>
X-Complaints-To: usenet@sea.gmane.org
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: kerberos-bounces@mit.edu

I  have a krb5_free_context at the end. And I only see the memory issue when 
I use krb5_get_credentials from a realm with which I have a cross realms 
relation.

Markus

"Russ Allbery" <rra@stanford.edu> wrote in message 
news:878xarldp6.fsf@windlord.stanford.edu...
> Markus Moeller <huaraz@moeller.plus.com> writes:
>
>> 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 ?
>
> Usually, profile allocations are going to be stored in the context and
> will be freed when you free the context.
>
> -- 
> Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
> ________________________________________________
> Kerberos mailing list           Kerberos@mit.edu
> https://mailman.mit.edu/mailman/listinfo/kerberos
> 



________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

home help back first fref pref prev next nref lref last post