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
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22474
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);
}