* kfree.c (krb5_free_pwd_sequences): Correction to previous
authorEzra Peisach <epeisach@mit.edu>
Thu, 24 Apr 2003 17:37:56 +0000 (17:37 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 24 Apr 2003 17:37:56 +0000 (17:37 +0000)
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

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/kfree.c

index bdb37203d9027c91090fd3b86d4cb2b1c8691af5..2dfe4639738201ae7e1a9971440d53db714a1472 100644 (file)
@@ -1,3 +1,8 @@
+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
index edb0699eb3c09658220a3786a7f86e8c3e2c31ca..0313a912a223c734f6822f3562baf077cb8f7a17 100644 (file)
@@ -433,11 +433,11 @@ krb5_free_pwd_sequences(krb5_context context, passwd_phrase_element **val)
 
     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);