better free of scache data

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25078 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2009-04-03 05:09:53 +00:00
parent 501d4ceadb
commit fd5cbcfe3f

View File

@@ -1329,11 +1329,12 @@ scc_move(krb5_context context, krb5_ccache from, krb5_ccache to)
ret = exec_stmt(context, sfrom->db, "COMMIT", KRB5_CC_IO); ret = exec_stmt(context, sfrom->db, "COMMIT", KRB5_CC_IO);
if (ret) return ret; if (ret) return ret;
scc_destroy(context, from); scc_free(sfrom);
return 0; return 0;
rollback: rollback:
scc_free(sfrom);
exec_stmt(context, sfrom->db, "ROLLBACK", 0); exec_stmt(context, sfrom->db, "ROLLBACK", 0);