kadm5: Fix leak in randkey principal
This commit is contained in:
@@ -406,6 +406,8 @@ out:
|
||||
*new_keys = kblock;
|
||||
*n_keys = num_keys;
|
||||
} else {
|
||||
for (i = 0; i < num_keys; ++i)
|
||||
krb5_free_keyblock_contents(context->context, &kblock[i]);
|
||||
free(kblock);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user