plug memory leak

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24156 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-12-11 05:09:18 +00:00
parent 554655b628
commit 9921bcbe2a

View File

@@ -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->acl_file);
free (di->log_file);
free(di);
}
*dbp = NULL;