[svn] gpgme - r1306 - trunk/gpgme
svn author marcus
cvs at cvs.gnupg.org
Wed Mar 5 20:58:43 CET 2008
Author: marcus
Date: 2008-03-05 20:58:41 +0100 (Wed, 05 Mar 2008)
New Revision: 1306
Modified:
trunk/gpgme/ChangeLog
trunk/gpgme/decrypt.c
trunk/gpgme/encrypt.c
Log:
2008-03-05 Marcus Brinkmann <marcus at g10code.de>
* decrypt.c (release_op_data): Release OPD->result.recipients.
* encrypt.c (release_op_data): Release invalid_recipient.
Modified: trunk/gpgme/ChangeLog
===================================================================
--- trunk/gpgme/ChangeLog 2008-03-05 12:00:57 UTC (rev 1305)
+++ trunk/gpgme/ChangeLog 2008-03-05 19:58:41 UTC (rev 1306)
@@ -1,3 +1,8 @@
+2008-03-05 Marcus Brinkmann <marcus at g10code.de>
+
+ * decrypt.c (release_op_data): Release OPD->result.recipients.
+ * encrypt.c (release_op_data): Release invalid_recipient.
+
2008-02-15 Marcus Brinkmann <marcus at g10code.de>
* engine-gpgconf.c (gpgconf_read): Fix end-of-line handline.
Modified: trunk/gpgme/decrypt.c
===================================================================
--- trunk/gpgme/decrypt.c 2008-03-05 12:00:57 UTC (rev 1305)
+++ trunk/gpgme/decrypt.c 2008-03-05 19:58:41 UTC (rev 1306)
@@ -50,12 +50,20 @@
release_op_data (void *hook)
{
op_data_t opd = (op_data_t) hook;
+ gpgme_recipient_t recipient = opd->result.recipients;
if (opd->result.unsupported_algorithm)
free (opd->result.unsupported_algorithm);
if (opd->result.file_name)
free (opd->result.file_name);
+
+ while (recipient)
+ {
+ gpgme_recipient_t next = recipient->next;
+ free (recipient);
+ recipient = next;
+ }
}
Modified: trunk/gpgme/encrypt.c
===================================================================
--- trunk/gpgme/encrypt.c 2008-03-05 12:00:57 UTC (rev 1305)
+++ trunk/gpgme/encrypt.c 2008-03-05 19:58:41 UTC (rev 1306)
@@ -53,6 +53,7 @@
gpgme_invalid_key_t next = invalid_recipient->next;
if (invalid_recipient->fpr)
free (invalid_recipient->fpr);
+ free (invalid_recipient);
invalid_recipient = next;
}
}
More information about the Gnupg-commits
mailing list