[1751] in Kerberos-V5-bugs
Re: memory leak...
daemon@ATHENA.MIT.EDU (Theodore Ts'o)
Thu Dec 21 18:26:39 1995
Date: Thu, 21 Dec 1995 18:26:19 -0500
From: Theodore Ts'o <tytso@MIT.EDU>
To: Roland Schemers <schemers@Eng.Sun.COM>
Cc: krb5-bugs@MIT.EDU, warlord@Eng.Sun.COM
In-Reply-To: Roland Schemers's message of Tue, 19 Dec 1995 23:55:46 -0800,
<199512200755.XAA02162@slapshot.eng.sun.com>
Date: Tue, 19 Dec 1995 23:55:46 -0800
From: Roland Schemers <schemers@Eng.Sun.COM>
Hi. I found a memory leak in:
(120195 snapshot) src/lib/krb5/os/hst_realm.c:krb5_get_host_realm
Thanks!
Basically what happens is profile_get_string mallocs the value for &realm:
Yeah, what was going on was that before we had the profile code, the
value of realm wasn't allocated, and so we needed to reallocate it. Now
that the profile code allocates the value for us, the extra reallocation
isn't necessary. Thanks for noticing this!
- Ted