[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
memory leak in krb5_rd_cred
The following patch seems to fix a memory leak in
lib/krb5/rd_cred.c:krb5_rd_cred.
$ diff -Naur rd_cred.c.0 rd_cred.c
--- rd_cred.c.0 2007-02-05 22:42:47.000000000 -0500
+++ rd_cred.c 2007-02-05 22:35:30.000000000 -0500
@@ -152,6 +152,9 @@
&enc_krb_cred_part,
&len);
+ if (enc_krb_cred_part_data.data != cred.enc_part.cipher.data)
+ free(enc_krb_cred_part_data.data);
+
if (ret)
goto out;
--
Michael B Allen
PHP Active Directory SSO
http://www.ioplex.com/