Skip to content

Commit

Permalink
Don't leak new fields of krb5_init_creds_context
Browse files Browse the repository at this point in the history
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
  • Loading branch information
greghudson committed Oct 24, 2012
1 parent ec6dc0e commit dedac42
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/krb5/krb/get_in_tkt.c
Expand Up @@ -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);
}

Expand Down

0 comments on commit dedac42

Please sign in to comment.