From 8b7e31c301da841cdfa54acf3a05f67d7ff34bef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 26 Jul 2011 20:14:53 -0700 Subject: [PATCH] plug memory leak --- lib/hdb/mkey.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/hdb/mkey.c b/lib/hdb/mkey.c index 6dcfc0294..dfda7b188 100644 --- a/lib/hdb/mkey.c +++ b/lib/hdb/mkey.c @@ -494,7 +494,6 @@ hdb_unseal_keys_kvno(krb5_context context, HDB *db, krb5_kvno kvno, size_t i, k; int exclude_dead = 0; KerberosTime now = 0; - time_t *set_time; if (kvno == 0) ret = 0; @@ -579,9 +578,6 @@ hdb_unseal_keys_kvno(krb5_context context, HDB *db, krb5_kvno kvno, * so there's no danger that we'll dump this entry and load it * again, repeatedly causing the history to grow boundelessly. */ - set_time = malloc(sizeof (*set_time)); - if (set_time == NULL) - return ENOMEM; /* Swap key sets */ ent->kvno = hist_keys->val[i].kvno;