fix memory leaks in krb5_gss_import_name() and krb5_gss_inquire_cred()
authorTom Yu <tlyu@mit.edu>
Thu, 22 Sep 2005 02:48:09 +0000 (02:48 +0000)
committerTom Yu <tlyu@mit.edu>
Thu, 22 Sep 2005 02:48:09 +0000 (02:48 +0000)
commit14fefb4f285d01a2b190f405a135a8e406e5e4fa
tree7b88a0133fe3cde6249b4b305997ed9c20f39b74
parent8b43213ebe6ddd8d10f33a4bf4cc2f987c29ce7e
fix memory leaks in krb5_gss_import_name() and krb5_gss_inquire_cred()

* import_name.c (krb5_gss_import_name): Add missing free of tmp in
an error case to fix a memory leak.

* inq_cred.c (krb5_gss_inquire_cred): Memory leak fixes: call
krb5_gss_release_cred() with address of cred, not cred; add
missing call to krb5_gss_release_cred() in an error case.

ticket: new
target_version: 1.4.3
tags: pullup
component: krb5-libs

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17386 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/gssapi/krb5/ChangeLog
src/lib/gssapi/krb5/import_name.c
src/lib/gssapi/krb5/inq_cred.c