dont leak scache context on error, cid#82

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24119 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-12-11 05:02:57 +00:00
parent c96c9b0ced
commit 1abdd59600

View File

@@ -508,6 +508,7 @@ scc_resolve(krb5_context context, krb5_ccache *id, const char *res)
if (sqlite3_column_type(s->scache_name, 0) != SQLITE_INTEGER) {
sqlite3_reset(s->scache_name);
scc_free(s);
krb5_set_error_message(context, KRB5_CC_END,
N_("Cache name of wrong type "
"for scache %ld", ""),