------------------------------------------------------------------------
r22474 | epeisach | 2009-07-30 13:22:28 -0400 (Thu, 30 Jul 2009) | 7 lines
ticket: 6541
subject: Fix memory leak in k5_pac_verify_server_checksum
k5_pac_verify_server_checksum was leaking memory when the checksum was valid.
t_pac.c: Fix memory leak by forgetting to release memory.
ticket: 6541
version_fixed: 1.7.1
status: resolved
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-7@22809
dc483132-0cff-0310-8789-
dd5450dbe970
ret = krb5_c_verify_checksum(context, server, KRB5_KEYUSAGE_APP_DATA_CKSUM,
&pac_data, &checksum, &valid);
+
+ free(pac_data.data);
+
if (ret != 0) {
- free(pac_data.data);
return ret;
}
if (ret)
err(context, ret, "krb5_pac_verify 4");
+ krb5_free_data_contents(context, &data);
+
krb5_pac_free(context, pac2);
}