[24476] in Kerberos
Re: Memory Leak problems with krb5_get_init_creds_password?
daemon@ATHENA.MIT.EDU (Chet Burgess)
Thu Aug 18 17:35:19 2005
Content-return: prohibited
Date: Thu, 18 Aug 2005 14:34:35 -0700
From: Chet Burgess <cfb@usc.edu>
In-reply-to: <1124396549.360322.57980@g14g2000cwa.googlegroups.com>
To: kerberos@mit.edu
Mail-followup-to: kerberos@mit.edu
Message-id: <20050818213435.GQ12646@usc.edu>
MIME-version: 1.0
Content-Type: multipart/mixed; boundary="===============81893621834903407=="
Errors-To: kerberos-bounces@mit.edu
--===============81893621834903407==
Content-return: prohibited
Content-type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature"; boundary=+bDoS+V4AJZnUgoC
Content-disposition: inline
--+bDoS+V4AJZnUgoC
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Thu, Aug 18, 2005 at 01:22:29PM -0700, brian.joh@comcast.net wrote:
> Note a memory leak should still exist if you constantly
> create krb5_contexts as Chet's program does. However,
> Chet's program is inefficient, and you should really never
> need more than one krb5_context per thread/program.
At no point was there any assumption that the program I
provided was efficient. It was a proof of concept program to show how
to exploit the memory leak. I agree that placing the res_state
variable into the krb5_context is a good solution, and that creating
multiple contexts in the same thread is unneccessary.
--=20
Chet Burgess
Manager, Enterprise Collaboration Services
Information Services Division
University of Southern California
cfb@usc.edu
213-740-5160
--+bDoS+V4AJZnUgoC
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (SunOS)
iD8DBQFDBP7qNgnmTPwvyfARAgooAJ0aKa6EGN+auTsrete0d6w9T/luGQCffcvb
XUhZaAxPQp000qE5QMd2OXg=
=eYq2
-----END PGP SIGNATURE-----
--+bDoS+V4AJZnUgoC--
--===============81893621834903407==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
________________________________________________
Kerberos mailing list Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos
--===============81893621834903407==--