admin: Fix double-free in keytab JSON listing
This commit is contained in:
@@ -166,7 +166,7 @@ kt_get(struct get_options *opt, int argc, char **argv)
|
||||
kadm5_principal_ent_rec princ;
|
||||
int mask = 0;
|
||||
krb5_keyblock *keys;
|
||||
int n_keys;
|
||||
int n_keys = 0;
|
||||
int created = 0;
|
||||
krb5_keytab_entry entry;
|
||||
|
||||
|
@@ -233,7 +233,6 @@ do_list1_json(struct list_options *opt,
|
||||
}
|
||||
heim_dict_set_value(d, HSTR("aliases"), aliases);
|
||||
heim_release(aliases);
|
||||
free(s);
|
||||
}
|
||||
|
||||
krb5_kt_free_entry(context, &entry);
|
||||
|
Reference in New Issue
Block a user