From 4b7c75eaf8196ce78578a2dc1d4b9f43d812698c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Fri, 3 Apr 2009 04:00:40 +0000 Subject: [PATCH] plug memory leak git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25024 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 b61750b0a..89bb489bf 100644 --- a/lib/krb5/scache.c +++ b/lib/krb5/scache.c @@ -1209,6 +1209,7 @@ scc_get_cache_first(krb5_context context, krb5_cc_cursor *cursor) } ret = prepare_stmt(context, ctx->db, &ctx->stmt, str); + free(str); if (ret) { exec_stmt(context, ctx->db, ctx->drop, 0); sqlite3_close(ctx->db); @@ -1328,7 +1329,7 @@ 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; - /* free sfrom */ + scc_destroy(context, from); return 0;