[27913] 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 (Russ Allbery)
Sun Jun 10 17:09:02 2007

From: Russ Allbery <rra@stanford.edu>
To: kerberos@mit.edu
In-Reply-To: <f4ho91$h3u$1@sea.gmane.org> (Markus Moeller's message of "Sun,
	10 Jun 2007 21:51:43 +0100")
Date: Sun, 10 Jun 2007 14:08:53 -0700
Message-ID: <878xarldp6.fsf@windlord.stanford.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: kerberos-bounces@mit.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

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