Commit 5d5b52d1 authored by Alexander Kanavin's avatar Alexander Kanavin

Fix memleak in example

parent 9bd44704
......@@ -117,8 +117,9 @@ static void digest_md5_authorization(gpointer plugin)
//fill in necessary data
gsignond_dictionary_set_string(data, "Service", "megaservice");
gsignond_dictionary_set_string(data, "Hostname", "megahostname");
gsignond_session_data_set_allowed_realms(data,
gsignond_copy_array_to_sequence(allowed_realms));
GSequence* allowed_realms_s = gsignond_copy_array_to_sequence(allowed_realms);
gsignond_session_data_set_allowed_realms(data, allowed_realms_s);
g_sequence_free(allowed_realms_s);
gsignond_session_data_set_username(data, "megauser@example.com");
gsignond_session_data_set_secret(data, "megapassword");
//initial server challenge, for simplicty it's hardcoded
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment