Fix memory leaks in kdb5_verify
authorEzra Peisach <epeisach@mit.edu>
Sat, 4 Sep 2010 21:43:04 +0000 (21:43 +0000)
committerEzra Peisach <epeisach@mit.edu>
Sat, 4 Sep 2010 21:43:04 +0000 (21:43 +0000)
Minor leaks.  Just cleaning up code.

ticket: 6771

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24291 dc483132-0cff-0310-8789-dd5450dbe970

src/tests/verify/kdb5_verify.c

index dade5cc90d45d013bfd53663441a434c5cceae12..4f77b19c95e603506830b78f9dc93b98d9a25abd 100644 (file)
@@ -214,6 +214,7 @@ main(argc, argv)
         com_err(progname, retval, "while closing database");
         exit(1);
     }
+    krb5_free_keyblock_contents(context, &master_keyblock);
 
     if (str_master_princ) {
         krb5_free_unparsed_name(context, str_master_princ);
@@ -452,5 +453,6 @@ set_dbname_help(context, pname, dbname)
     mblock.mkvno = master_entry->key_data[0].key_data_kvno;
 
     krb5_db_free_principal(context, master_entry);
+    free(args[0]);
     return 0;
 }