Skip to content

Commit

Permalink
Fix leaks in KDB test module
Browse files Browse the repository at this point in the history
  • Loading branch information
Sashan authored and greghudson committed May 31, 2022
1 parent 445e1b3 commit acd3840
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugins/kdb/test/kdb_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ test_issue_pac(krb5_context context, unsigned int flags, krb5_db_entry *client,
{
krb5_data data = empty_data();
krb5_boolean found_logon_info = FALSE;
krb5_ui_4 *types;
krb5_ui_4 *types = NULL;
size_t num_buffers = 0, i;

change_auth_indicators(context, auth_indicators);
Expand Down Expand Up @@ -692,6 +692,8 @@ test_issue_pac(krb5_context context, unsigned int flags, krb5_db_entry *client,

if (old_pac != NULL)
assert(found_logon_info);

free(types);
}

return 0;
Expand Down Expand Up @@ -771,6 +773,7 @@ test_allowed_to_delegate_from(krb5_context context,
found = match_in_table(context, "rbcd", proxy_princ, server_princ);
krb5_free_unparsed_name(context, proxy_princ);
krb5_free_unparsed_name(context, server_princ);
krb5_free_unparsed_name(context, client_princ);
return found ? 0 : KRB5KDC_ERR_BADOPTION;
}

Expand Down

0 comments on commit acd3840

Please sign in to comment.