make krb5_free_* functions ignore NULL
authorKen Raeburn <raeburn@mit.edu>
Mon, 9 Feb 2009 17:53:21 +0000 (17:53 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 9 Feb 2009 17:53:21 +0000 (17:53 +0000)
commit80aacf61cfd858308a2954ff3101c40bba991081
tree4693ba049b4e1f48416f3b169566d295b63b20b0
parent32878549b96e11fcab9751837e3612bc5623af83
make krb5_free_* functions ignore NULL

This makes them safer to call in various contexts where NULL may leak
through, and makes analysis easier.

Also, remove some checks for NULL before calling a free routine that
will also check for NULL.

ticket: 6377

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21920 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/krb/free_rtree.c
src/lib/krb5/krb/init_ctx.c
src/lib/krb5/krb/kfree.c
src/lib/krb5/krb/preauth2.c
src/lib/krb5/os/free_krbhs.c
src/lib/krb5/os/promptusr.c