+2004-05-24 Ezra Peisach <epeisach@mit.edu>
+
+ * kdb5_mkdums.c (main): Fix memory leak of master principal at exit.
+
2003-05-22 Ezra Peisach <epeisach@mit.edu>
* kdb5_mkdums.c (main): When attempting to register writable
exit(status);
}
+int master_princ_set = 0;
krb5_keyblock master_keyblock;
krb5_principal master_princ;
krb5_db_entry master_entry;
com_err(progname, retval, "while closing database");
exit(1);
}
+ if (master_princ_set) {
+ krb5_free_principal(test_context, master_princ);
+ }
krb5_free_context(test_context);
exit(0);
}
com_err(pname, retval, "while setting up master key name");
return(1);
}
+ master_princ_set = 1;
if (mkey_password) {
pwd.data = mkey_password;
pwd.length = strlen(mkey_password);