2008-03-05 Marcus Brinkmann <marcus@g10code.de>

* decrypt.c (release_op_data): Release OPD->result.recipients.
	* encrypt.c (release_op_data): Release invalid_recipient.
This commit is contained in:
Marcus Brinkmann 2008-03-05 19:58:41 +00:00
parent 639df34f65
commit 95a12bd084
3 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-03-05 Marcus Brinkmann <marcus@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@g10code.de>
* engine-gpgconf.c (gpgconf_read): Fix end-of-line handline.

View File

@ -50,12 +50,20 @@ static void
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;
}
}

View File

@ -53,6 +53,7 @@ release_op_data (void *hook)
gpgme_invalid_key_t next = invalid_recipient->next;
if (invalid_recipient->fpr)
free (invalid_recipient->fpr);
free (invalid_recipient);
invalid_recipient = next;
}
}