From a1e300b512999ec32aeb69cbff1b04a6cf523d83 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sat, 31 Jan 2009 01:50:37 +0000 Subject: [PATCH] fix resource leak git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21849 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/dbutil/kdb5_mkey.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kadmin/dbutil/kdb5_mkey.c b/src/kadmin/dbutil/kdb5_mkey.c index f35375371..786726e63 100644 --- a/src/kadmin/dbutil/kdb5_mkey.c +++ b/src/kadmin/dbutil/kdb5_mkey.c @@ -942,7 +942,7 @@ kdb5_update_princ_encryption(int argc, char *argv[]) int force = 0; int optchar; krb5_error_code retval; - krb5_actkvno_node *actkvno_list; + krb5_actkvno_node *actkvno_list = 0; krb5_db_entry master_entry; int nentries = 1; krb5_boolean more = FALSE; @@ -1094,6 +1094,7 @@ cleanup: memset(&new_master_keyblock, 0, sizeof(new_master_keyblock)); krb5_free_keyblock(util_context, tmp_keyblock); krb5_free_unparsed_name(util_context, mkey_fullname); + krb5_dbe_free_actkvno_list(util_context, actkvno_list); } struct kvnos_in_use { -- 2.26.2