mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-18 14:17:03 +01:00
gpg: Eliminate a memory leak.
* g10/gpg.c (main): Don't leak OPT.DEF_RECIPIENT. -- Signed-off-by: Neal H. Walfield <neal@g10code.com>
This commit is contained in:
parent
99c84b49b7
commit
89eee5f6b7
@ -2580,7 +2580,10 @@ main (int argc, char **argv)
|
||||
case oDefaultKey: opt.def_secret_key = pargs.r.ret_str; break;
|
||||
case oDefRecipient:
|
||||
if( *pargs.r.ret_str )
|
||||
opt.def_recipient = make_username(pargs.r.ret_str);
|
||||
{
|
||||
xfree (opt.def_recipient);
|
||||
opt.def_recipient = make_username(pargs.r.ret_str);
|
||||
}
|
||||
break;
|
||||
case oDefRecipientSelf:
|
||||
xfree(opt.def_recipient); opt.def_recipient = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user