krb5 commit: Don't leak new fields of krb5_init_creds_context
Greg Hudson
ghudson at MIT.EDU
Wed Oct 24 12:16:41 EDT 2012
https://github.com/krb5/krb5/commit/dedac424340a524489e54a89b62d98eb95470f81
commit dedac424340a524489e54a89b62d98eb95470f81
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.
ticket: 7428 (new)
target_version: 1.11
tags: pullup
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