From 9921bcbe2a8d441fb4fd321a96b8d373d20e038f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 11 Dec 2008 05:09:18 +0000 Subject: [PATCH] plug memory leak git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24156 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hdb/dbinfo.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/hdb/dbinfo.c b/lib/hdb/dbinfo.c index 2121577bb..7e2961c61 100644 --- a/lib/hdb/dbinfo.c +++ b/lib/hdb/dbinfo.c @@ -228,10 +228,12 @@ hdb_free_dbinfo(krb5_context context, struct hdb_dbinfo **dbp) for(di = *dbp; di != NULL; di = ndi) { ndi = di->next; + free (di->label); free (di->realm); free (di->dbname); - if (di->mkey_file) - free (di->mkey_file); + free (di->mkey_file); + free (di->acl_file); + free (di->log_file); free(di); } *dbp = NULL;