From c30d0bb95cd7cfbc3ebb895d329e9fbfc7b634a5 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Thu, 24 Apr 2003 17:37:56 +0000 Subject: [PATCH] * 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 --- src/lib/krb5/krb/ChangeLog | 5 +++++ src/lib/krb5/krb/kfree.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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); -- 2.26.2