diff --git a/g10/gpg.c b/g10/gpg.c index c18edd0dd..0f1c74a9d 100644 --- a/g10/gpg.c +++ b/g10/gpg.c @@ -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;