Skip to content

Commit

Permalink
fix leak in cc_mslsa.c
Browse files Browse the repository at this point in the history
cc_name needs to be freed in krb5_lcc_close().

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>

ticket: 7213
  • Loading branch information
Kevin Wasserman authored and hartmans committed Jul 16, 2012
1 parent ee6fbe2 commit dcd9202
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/krb5/ccache/cc_mslsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -2162,6 +2162,8 @@ krb5_lcc_close(krb5_context context, krb5_ccache id)

if (data) {
LsaDeregisterLogonProcess(data->LogonHandle);
if (data->cc_name)
free(data->cc_name);
free(data);
}
free(id);
Expand Down

0 comments on commit dcd9202

Please sign in to comment.