diff options
author | Marcus Brinkmann <[email protected]> | 2007-05-18 22:58:59 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2007-05-18 22:58:59 +0000 |
commit | b9042f1cecce76e9a174013f3def0bc7aa640cc3 (patch) | |
tree | 396666250d6889f135ea97c15b6097e4877527c9 /tools/symcryptrun.c | |
parent | Fix for bug 797. (diff) | |
download | gnupg-b9042f1cecce76e9a174013f3def0bc7aa640cc3.tar.gz gnupg-b9042f1cecce76e9a174013f3def0bc7aa640cc3.zip |
agent/
2007-05-19 Marcus Brinkmann <[email protected]>
* protect-tool.c (get_passphrase): Free ORIG_CODESET on error.
g10/
2007-05-19 Marcus Brinkmann <[email protected]>
* passphrase.c (passphrase_get): Free ORIG_CODESET on error.
sm/
2007-05-18 Marcus Brinkmann <[email protected]>
* qualified.c (gpgsm_qualified_consent,
gpgsm_not_qualified_warning): Free ORIG_CODESET on error.
* certdump.c (gpgsm_format_keydesc): Likewise.
tools/
2007-05-19 Marcus Brinkmann <[email protected]>
* symcryptrun.c (confucius_get_pass): Free ORIG_CODESET on error.
Diffstat (limited to '')
-rw-r--r-- | tools/symcryptrun.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/symcryptrun.c b/tools/symcryptrun.c index b45e356a9..119121208 100644 --- a/tools/symcryptrun.c +++ b/tools/symcryptrun.c @@ -1,5 +1,5 @@ /* symcryptrun.c - Tool to call simple symmetric encryption tools. - * Copyright (C) 2005 Free Software Foundation, Inc. + * Copyright (C) 2005, 2007 Free Software Foundation, Inc. * * This file is part of GnuPG. * @@ -460,7 +460,10 @@ confucius_get_pass (const char *cacheid, int again, int *canceled) /* We only switch when we are able to restore the codeset later. */ orig_codeset = xstrdup (orig_codeset); if (!bind_textdomain_codeset (PACKAGE_GT, "utf-8")) - orig_codeset = NULL; + { + xfree (orig_codeset); + orig_codeset = NULL; + } } #endif |