svn rev #21849: trunk/src/kadmin/dbutil/

raeburn@MIT.EDU raeburn at MIT.EDU
Fri Jan 30 20:50:38 EST 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=21849
Commit By: raeburn
Log Message:
fix resource leak


Changed Files:
U   trunk/src/kadmin/dbutil/kdb5_mkey.c
Modified: trunk/src/kadmin/dbutil/kdb5_mkey.c
===================================================================
--- trunk/src/kadmin/dbutil/kdb5_mkey.c	2009-01-31 01:07:04 UTC (rev 21848)
+++ trunk/src/kadmin/dbutil/kdb5_mkey.c	2009-01-31 01:50:37 UTC (rev 21849)
@@ -942,7 +942,7 @@
     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 @@
     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 {




More information about the cvs-krb5 mailing list