From 7db70d9a4ad9c65350eff7f9ca01c03c3f2e6f26 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Thu, 25 Apr 2002 00:36:03 +0000 Subject: [PATCH] 2002-04-25 Marcus Brinkmann * rungpg.c (_gpgme_gpg_release): Call gpgme_data_release on GPG->cmd.cb_data, not xfree. --- trunk/TODO | 2 ++ trunk/gpgme/ChangeLog | 5 +++++ trunk/gpgme/rungpg.c | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/trunk/TODO b/trunk/TODO index e7d37fc..ec2f2e1 100644 --- a/trunk/TODO +++ b/trunk/TODO @@ -21,6 +21,8 @@ Hey Emacs, this is -*- outline -*- mode! (it's an internal error, as select_protocol checks already). ** When server mode is implemented properly, more care has to be taken to release all resources on error (for example to free assuan_cmd). +** GnuPG +*** For pipemode, make sure to release the pipemode callback data object. * Operations ** Export status handler need much more work. diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index 0761ece..c7485ba 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -1,3 +1,8 @@ +2002-04-25 Marcus Brinkmann + + * rungpg.c (_gpgme_gpg_release): Call gpgme_data_release on + GPG->cmd.cb_data, not xfree. + 2002-04-25 Marcus Brinkmann * engine-gpgsm.c (_gpgme_gpgsm_new): Set the display, ttyname, diff --git a/trunk/gpgme/rungpg.c b/trunk/gpgme/rungpg.c index 797ae43..668ed26 100644 --- a/trunk/gpgme/rungpg.c +++ b/trunk/gpgme/rungpg.c @@ -264,7 +264,7 @@ _gpgme_gpg_release (GpgObject gpg) xfree (gpg->colon.buffer); if (gpg->argv) free_argv (gpg->argv); - xfree (gpg->cmd.cb_data); + gpgme_data_release (gpg->cmd.cb_data); xfree (gpg->cmd.keyword); if (gpg->pid != -1) -- 2.26.2