2005-09-12 Marcus Brinkmann <marcus@g10code.de>

* keylist.c (release_op_data): Do not free opd->tmp_uid.
This commit is contained in:
Marcus Brinkmann 2005-09-12 19:08:29 +00:00
parent 6f3247c583
commit f9cbb43463
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2005-09-12 Marcus Brinkmann <marcus@g10code.de>
* keylist.c (release_op_data): Do not free opd->tmp_uid.
2005-07-26 Marcus Brinkmann <marcus@g10code.de> 2005-07-26 Marcus Brinkmann <marcus@g10code.de>
* keylist.c (gpgme_get_key): Allow key IDs. * keylist.c (gpgme_get_key): Allow key IDs.

View File

@ -48,6 +48,7 @@ typedef struct
struct _gpgme_op_keylist_result result; struct _gpgme_op_keylist_result result;
gpgme_key_t tmp_key; gpgme_key_t tmp_key;
/* This points to the last uid in tmp_key. */
gpgme_user_id_t tmp_uid; gpgme_user_id_t tmp_uid;
/* Something new is available. */ /* Something new is available. */
int key_cond; int key_cond;
@ -63,8 +64,9 @@ release_op_data (void *hook)
if (opd->tmp_key) if (opd->tmp_key)
gpgme_key_unref (opd->tmp_key); gpgme_key_unref (opd->tmp_key);
if (opd->tmp_uid) /* opd->tmp_uid is actually part of opd->tmp_key, so we do not need
free (opd->tmp_uid); to release it here. */
while (key) while (key)
{ {
struct key_queue_item_s *next = key->next; struct key_queue_item_s *next = key->next;