From: Ezra Peisach Date: Thu, 24 Apr 2003 17:37:56 +0000 (+0000) Subject: * kfree.c (krb5_free_pwd_sequences): Correction to previous X-Git-Tag: krb5-1.4-beta1~1001 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c30d0bb95cd7cfbc3ebb895d329e9fbfc7b634a5;p=krb5.git * kfree.c (krb5_free_pwd_sequences): Correction to previous 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 --- diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index bdb37203d..2dfe46397 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,8 @@ +2003-04-24 Ezra Peisach + + * kfree.c (krb5_free_pwd_sequences): Correction to previous + fix. Free contents of krb5_data - not just the pointer. + 2003-04-23 Ezra Peisach * kfree.c (krb5_free_pwd_sequences): Actually free the entire diff --git a/src/lib/krb5/krb/kfree.c b/src/lib/krb5/krb/kfree.c index edb0699eb..0313a912a 100644 --- a/src/lib/krb5/krb/kfree.c +++ b/src/lib/krb5/krb/kfree.c @@ -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);