Index: b/cipher/pubkey.c =================================================================== --- b/cipher/pubkey.c +++ b/cipher/pubkey.c @@ -3620,6 +3620,7 @@ if (!arg_list) { rc = gpg_err_code_from_syserror (); + gcry_free (string) goto leave; } for (i = j = 0; i < elem_n; i++)