Fix memleak in kswitch
This commit is contained in:
@@ -169,5 +169,7 @@ kswitch(struct kswitch_options *opt, int argc, char **argv)
|
|||||||
if (ret)
|
if (ret)
|
||||||
krb5_err(heimtools_context, 1, ret, "krb5_cc_switch");
|
krb5_err(heimtools_context, 1, ret, "krb5_cc_switch");
|
||||||
|
|
||||||
|
krb5_cc_close(heimtools_context, id);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user