* keylist.c (release_op_data): Do not free opd->tmp_uid.
+2005-09-12 Marcus Brinkmann <marcus@g10code.de>
+
+ * keylist.c (release_op_data): Do not free opd->tmp_uid.
+
2005-08-26 Marcus Brinkmann <marcus@g10code.de>
* rungpg.c (command_handler): Use _gpgme_io_write instead of write.
struct _gpgme_op_keylist_result result;
gpgme_key_t tmp_key;
+ /* This points to the last uid in tmp_key. */
gpgme_user_id_t tmp_uid;
/* Something new is available. */
int key_cond;
if (opd->tmp_key)
gpgme_key_unref (opd->tmp_key);
- if (opd->tmp_uid)
- free (opd->tmp_uid);
+ /* opd->tmp_uid is actually part of opd->tmp_key, so we do not need
+ to release it here. */
+
while (key)
{
struct key_queue_item_s *next = key->next;