ssh-agent: Fix leak in remove_by_public_key()

gck_attributes_find_string() returns a newly allocated string, so it
must be g_free'ed after use.

https://bugzilla.gnome.org/show_bug.cgi?id=738508
ssh-agent: Fix leak in search_keys_like_attributes()

gck_enumerator_next() return value must be unref'fed as it's transfer
full.

https://bugzilla.gnome.org/show_bug.cgi?id=738508
ssh-agent: Fix leak in op_v1_request_identities

The object returned by gck_enumerator_next() must be unref'ed
as this method is "transfer full".

https://bugzilla.gnome.org/show_bug.cgi?id=738508
ssh-agent: Fix leak in op_request_identities

The object returned by gck_enumerator_next() must be unref'ed.

https://bugzilla.gnome.org/show_bug.cgi?id=738508
Unref GkmCredential::secret in ::dispose

This fixes a memory leak.

https://bugzilla.gnome.org/show_bug.cgi?id=738508
gkm-gnome2-file: Fix leak in validate_buffer()

'check' is allocated in this function but never freed.

https://bugzilla.gnome.org/show_bug.cgi?id=738508
gkm-gnome2-file: Fix leaks in create_cipher()

'key' and 'iv' were allocated before calling
egg_symkey_generate_simple() but this function allocates the memory
needed for the 'key' and 'iv' return value, so the memory which was
allocated in create_cipher() is lost and leaked.
This also uses egg_secure_memory_free() to free 'key' memory as
egg_symkey_generate_simple() allocates it with egg_secure_alloc().

https://bugzilla.gnome.org/show_bug.cgi?id=738508
Free GkmSecretItem::schema in ::finalize()

https://bugzilla.gnome.org/show_bug.cgi?id=738508
test-dbus-items: Fix memory leak

https://bugzilla.gnome.org/show_bug.cgi?id=738508
egg-cleanup: Don't leak 'cleanup' on unregister

When unregistering a cleanup instance, the memory allocated for the cleanup
was not freed causing a memory leak.

https://bugzilla.gnome.org/show_bug.cgi?id=738508
egg/test-dn: Don't leak GBytes created in test_dn_value()

https://bugzilla.gnome.org/show_bug.cgi?id=738508
gkm-data-asn1: Unref buffer we got from egg_asn1x_get_integer_as_raw()

Otherwise we will be leaking a reference to that buffer, and it will
never get destroyed. This showed up as a memory leaked in test-data-der.

https://bugzilla.gnome.org/show_bug.cgi?id=738508
test-data-asn1: Fix memory leaks in test_asn1_integers

https://bugzilla.gnome.org/show_bug.cgi?id=738508
test-data-der: Fix various memory leaks

https://bugzilla.gnome.org/show_bug.cgi?id=738508
gkm-gnome2-file: Free keys to 'entries' hash tables

The keys to the 'publics' and 'privates' hash tables are strdup'ed
strings, but these strings are never freed. This commit adds a free
function for hash table keys to the g_hash_table_new_full call.

https://bugzilla.gnome.org/show_bug.cgi?id=738508
test-startup: Use g_strfreev to free GStrv variable

gkd_test_launch_daemon returns a "transfer full" GStrv, so it must be
freed with g_strfreev after use.

https://bugzilla.gnome.org/show_bug.cgi?id=738508
test-asn1: Don't leak 'asn' in test_create_quark()

https://bugzilla.gnome.org/show_bug.cgi?id=738508
test-padding: Don't leak egg_padding_pkcs1_pad_02 return value

egg_padding_pkcs1_pad_02 returns newly allocated data which must be
g_free'ed after use.

https://bugzilla.gnome.org/show_bug.cgi?id=738508
test-pam: Fix GError leak in error case

When g_file_get_contents() fails and sets an error, it must be freed.

https://bugzilla.gnome.org/show_bug.cgi?id=738508
test-secret: Don't leak new secrets in test_equal()

Secrets created with gkm_secret_new* must be unref'fed when no longer
used.

https://bugzilla.gnome.org/show_bug.cgi?id=738508