diff options
author | Marcus Brinkmann <[email protected]> | 2005-09-12 19:08:29 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2005-09-12 19:08:29 +0000 |
commit | e7573e4d91f34ae42d607f4fd6cf8326b0cb2ae5 (patch) | |
tree | 85ebe3c23bb2bedd307d0acf003c740aef5f41ca | |
parent | 2005-09-12 Marcus Brinkmann <[email protected]> (diff) | |
download | gpgme-e7573e4d91f34ae42d607f4fd6cf8326b0cb2ae5.tar.gz gpgme-e7573e4d91f34ae42d607f4fd6cf8326b0cb2ae5.zip |
2005-09-12 Marcus Brinkmann <[email protected]>
* keylist.c (release_op_data): Do not free opd->tmp_uid.
-rw-r--r-- | branches/gpgme-1-0-branch/gpgme/ChangeLog | 4 | ||||
-rw-r--r-- | branches/gpgme-1-0-branch/gpgme/keylist.c | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/branches/gpgme-1-0-branch/gpgme/ChangeLog b/branches/gpgme-1-0-branch/gpgme/ChangeLog index 4c0eee78..fc3c61bf 100644 --- a/branches/gpgme-1-0-branch/gpgme/ChangeLog +++ b/branches/gpgme-1-0-branch/gpgme/ChangeLog @@ -1,3 +1,7 @@ +2005-09-12 Marcus Brinkmann <[email protected]> + + * keylist.c (release_op_data): Do not free opd->tmp_uid. + 2005-07-26 Marcus Brinkmann <[email protected]> * keylist.c (gpgme_get_key): Allow key IDs. diff --git a/branches/gpgme-1-0-branch/gpgme/keylist.c b/branches/gpgme-1-0-branch/gpgme/keylist.c index e26ddf09..8f9cf375 100644 --- a/branches/gpgme-1-0-branch/gpgme/keylist.c +++ b/branches/gpgme-1-0-branch/gpgme/keylist.c @@ -48,6 +48,7 @@ typedef struct 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; @@ -63,8 +64,9 @@ release_op_data (void *hook) 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; |