kadmin: stash() do not leak 'mkey' if early exit
Change-Id: I4d9f847e833a895933dcd69cc1e7aed80d85aea5
This commit is contained in:
@@ -75,6 +75,7 @@ stash(struct stash_options *opt, int argc, char **argv)
|
||||
if (ret)
|
||||
krb5_warn(context, ret, "reading master key from %s",
|
||||
opt->key_file_string);
|
||||
hdb_free_master_key(context, mkey);
|
||||
return 0;
|
||||
} else {
|
||||
krb5_keyblock key;
|
||||
|
Reference in New Issue
Block a user