summaryrefslogtreecommitdiffabout
path: root/src/gpg.c
Side-by-side diff
Diffstat (limited to 'src/gpg.c') (more/less context) (show whitespace changes)
-rw-r--r--src/gpg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpg.c b/src/gpg.c
index 474d94b..d4f9b71 100644
--- a/src/gpg.c
+++ b/src/gpg.c
@@ -132,7 +132,7 @@ create_gpg_homedir ()
if (temp_homedir)
return 0;
- temp_homedir = xstrdup ("/tmp/wydawca-XXXXXX");
+ temp_homedir = grecs_strdup ("/tmp/wydawca-XXXXXX");
if (!mkdtemp (temp_homedir))
{
logmsg (LOG_CRIT, _("cannot create GPG home directory (%s): %s"),
@@ -237,7 +237,7 @@ verify_directive_signature (struct file_triplet *trp)
fail_if_err (gpgme_op_import (ctx, key_data));
res = gpgme_op_import_result (ctx);
pstat = res->imports;
- uptr->fpr = xstrdup (pstat->fpr);
+ uptr->fpr = grecs_strdup (pstat->fpr);
if (debug_level > 2)
logmsg (LOG_DEBUG, _("imported key: user = %s, fingerprint = %s"),
uptr->name, uptr->fpr);
@@ -271,6 +271,7 @@ verify_directive_signature (struct file_triplet *trp)
gpgme_data_release (directive_data);
gpgme_data_release (key_data);
+ gpgme_release (ctx);
return rc;
}

Return to:

Send suggestions and report system problems to the System administrator.