From: Ezra Peisach Date: Sat, 4 Sep 2010 21:43:04 +0000 (+0000) Subject: Fix memory leaks in kdb5_verify X-Git-Tag: krb5-1.9-beta1~107 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=98893969fb788e8d6d3c48d8e9b57145a214a2f8;p=krb5.git Fix memory leaks in kdb5_verify Minor leaks. Just cleaning up code. ticket: 6771 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24291 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/tests/verify/kdb5_verify.c b/src/tests/verify/kdb5_verify.c index dade5cc90..4f77b19c9 100644 --- a/src/tests/verify/kdb5_verify.c +++ b/src/tests/verify/kdb5_verify.c @@ -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; }