fix. Free contents of krb5_data - not just the pointer.
ticket: 1439
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15369
dc483132-0cff-0310-8789-
dd5450dbe970
+2003-04-24 Ezra Peisach <epeisach@mit.edu>
+
+ * kfree.c (krb5_free_pwd_sequences): Correction to previous
+ fix. Free contents of krb5_data - not just the pointer.
+
2003-04-23 Ezra Peisach <epeisach@mit.edu>
* kfree.c (krb5_free_pwd_sequences): Actually free the entire
for (temp = val; *temp; temp++) {
if ((*temp)->passwd) {
- krb5_xfree((*temp)->passwd);
+ krb5_free_data(context, (*temp)->passwd);
(*temp)->passwd = 0;
}
if ((*temp)->phrase) {
- krb5_xfree((*temp)->phrase);
+ krb5_free_data(context, (*temp)->phrase);
(*temp)->phrase = 0;
}
krb5_xfree(*temp);