krb5 commit [krb5-1.11]: Don't leak new fields of krb5_init_creds_context
Tom Yu
tlyu at MIT.EDU
Tue Oct 30 14:02:20 EDT 2012
https://github.com/krb5/krb5/commit/97a359dc38354e9426dc9afc2e43e8f4b2e66ce4
commit 97a359dc38354e9426dc9afc2e43e8f4b2e66ce4
Author: Greg Hudson <ghudson at mit.edu>
Date: Wed Oct 24 12:16:20 2012 -0400
Don't leak new fields of krb5_init_creds_context
Release the cc_config_in and cc_config_out fields of a
krb5_init_creds_context when freeing the context.
(cherry picked from commit dedac424340a524489e54a89b62d98eb95470f81)
ticket: 7428
version_fixed: 1.11
status: resolved
src/lib/krb5/krb/get_in_tkt.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/lib/krb5/krb/get_in_tkt.c b/src/lib/krb5/krb/get_in_tkt.c
index c20d4b7..bcfc22e 100644
--- a/src/lib/krb5/krb/get_in_tkt.c
+++ b/src/lib/krb5/krb/get_in_tkt.c
@@ -512,6 +512,8 @@ krb5_init_creds_free(krb5_context context,
krb5_free_data_contents(context, &ctx->salt);
krb5_free_data_contents(context, &ctx->s2kparams);
krb5_free_keyblock_contents(context, &ctx->as_key);
+ k5_json_release(ctx->cc_config_in);
+ k5_json_release(ctx->cc_config_out);
free(ctx);
}
More information about the cvs-krb5
mailing list