mirror of
git://git.gnupg.org/gnupg.git
synced 2024-09-07 12:56:21 +02:00
export_secret_ssh_key: Avoid memory leak.
* g10/export.c (export_secret_ssh_key): Free memory on errrors. -- GnuPG-bug-id: 7201 Signed-off-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
parent
b1029031d4
commit
f66e9356f8
@ -2978,7 +2978,7 @@ export_secret_ssh_key (ctrl_t ctrl, const char *userid)
|
||||
{
|
||||
log_error (_("key \"%s\" not found: %s\n"), userid,
|
||||
err? gpg_strerror (err) : "Not a Keygrip" );
|
||||
return err;
|
||||
goto leave;
|
||||
}
|
||||
|
||||
bin2hex (desc.u.grip, KEYGRIP_LEN, hexgrip);
|
||||
|
Loading…
Reference in New Issue
Block a user