From fd5cbcfe3ffc3ce96d3d338b1ad939e1b8538c95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Fri, 3 Apr 2009 05:09:53 +0000 Subject: [PATCH] better free of scache data git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25078 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/scache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/krb5/scache.c b/lib/krb5/scache.c index 72b2842be..7832db0f8 100644 --- a/lib/krb5/scache.c +++ b/lib/krb5/scache.c @@ -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); if (ret) return ret; - scc_destroy(context, from); + scc_free(sfrom); return 0; rollback: + scc_free(sfrom); exec_stmt(context, sfrom->db, "ROLLBACK", 0);