diff options
author | Luke Howard <lukeh@padl.com> | 2009-09-11 22:17:07 +0000 |
---|---|---|
committer | Luke Howard <lukeh@padl.com> | 2009-09-11 22:17:07 +0000 |
commit | 7157ece52692701e5977419dbe67cdcdfb9e77b7 (patch) | |
tree | 98655ca5addd15f9271ee6057b2bd7c727e986db | |
parent | 2ca4fab04acc12b6c75a11c7583f0aa9c6526706 (diff) | |
download | krb5-7157ece52692701e5977419dbe67cdcdfb9e77b7.zip krb5-7157ece52692701e5977419dbe67cdcdfb9e77b7.tar.gz krb5-7157ece52692701e5977419dbe67cdcdfb9e77b7.tar.bz2 |
don't check for NULL-ity before freeinglhoward/s4u
git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/s4u@22734 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/lib/krb5/krb/kfree.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/krb5/krb/kfree.c b/src/lib/krb5/krb/kfree.c index edea302..8cef954 100644 --- a/src/lib/krb5/krb/kfree.c +++ b/src/lib/krb5/krb/kfree.c @@ -169,10 +169,8 @@ krb5_free_checksum_contents(krb5_context context, register krb5_checksum *val) { if (val == NULL) return; - if (val->contents) { - free(val->contents); - val->contents = 0; - } + free(val->contents); + val->contents = NULL; } void KRB5_CALLCONV @@ -538,8 +536,6 @@ krb5_free_tkt_authent(krb5_context context, krb5_tkt_authent *val) void KRB5_CALLCONV krb5_free_unparsed_name(krb5_context context, char *val) { - if (val == NULL) - return; free(val); } |