diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/ChangeLog | 4 | ||||
-rw-r--r-- | tools/symcryptrun.c | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/tools/ChangeLog b/tools/ChangeLog index cd403e2bf..6ee23ccc5 100644 --- a/tools/ChangeLog +++ b/tools/ChangeLog @@ -1,3 +1,7 @@ +2007-05-19 Marcus Brinkmann <[email protected]> + + * symcryptrun.c (confucius_get_pass): Free ORIG_CODESET on error. + 2007-05-08 Werner Koch <[email protected]> * sockprox.c: New. It needs to be build manually. By Moritz 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 |