[svn] gpgme - r1094 - trunk/gpgme

svn author marcus cvs at cvs.gnupg.org
Mon Sep 12 21:06:46 CEST 2005


Author: marcus
Date: 2005-09-12 21:06:45 +0200 (Mon, 12 Sep 2005)
New Revision: 1094

Modified:
   trunk/gpgme/ChangeLog
   trunk/gpgme/keylist.c
Log:
2005-09-12  Marcus Brinkmann  <marcus at g10code.de>

	* keylist.c (release_op_data): Do not free opd->tmp_uid.


Modified: trunk/gpgme/ChangeLog
===================================================================
--- trunk/gpgme/ChangeLog	2005-09-08 15:17:58 UTC (rev 1093)
+++ trunk/gpgme/ChangeLog	2005-09-12 19:06:45 UTC (rev 1094)
@@ -1,3 +1,7 @@
+2005-09-12  Marcus Brinkmann  <marcus at g10code.de>
+
+	* keylist.c (release_op_data): Do not free opd->tmp_uid.
+
 2005-08-26  Marcus Brinkmann  <marcus at g10code.de>
 
 	* rungpg.c (command_handler): Use _gpgme_io_write instead of write.

Modified: trunk/gpgme/keylist.c
===================================================================
--- trunk/gpgme/keylist.c	2005-09-08 15:17:58 UTC (rev 1093)
+++ trunk/gpgme/keylist.c	2005-09-12 19:06:45 UTC (rev 1094)
@@ -48,6 +48,7 @@
   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 @@
 
   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;




More information about the Gnupg-commits mailing list