[376] in Kerberos-V5-bugs

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

memory leak in recvauth

daemon@ATHENA.MIT.EDU (Jim Miller)
Fri Oct 15 18:28:08 1993

From: jim@bilbo.suite.com (Jim Miller)
Date: Fri, 15 Oct 93 17:13:33 -0500
To: krb5-bugs@MIT.EDU
Cc: kerberos@MIT.EDU
Reply-To: Jim_Miller@suite.com


This is for Kerberos 5, pre-beta 3...

The memory allocated for "rcache" is never freed.

	if (!(rcache = (krb5_rcache) malloc(sizeof(*rcache)))) 

		problem = ENOMEM;


There are numerous calls to "krb5_rc_close", but this routine does not free  
"rcache".

Looking at "sim_server.c", you'll see that it does an "xfree(rcache)" after  
each call to "krb5_rc_close".

Jim_Miller@suite.com


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