mirror of
git://git.gnupg.org/gnupg.git
synced 2024-09-07 12:56:21 +02:00
scd: Avoid memory leak.
* scd/app-p15.c (do_sign): Free allocated memory on error. -- GnuPG-bug-id: 7201 Signed-off-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
parent
e8c8068dec
commit
b1029031d4
@ -5742,6 +5742,7 @@ do_sign (app_t app, ctrl_t ctrl, const char *keyidstr, int hashalgo,
|
||||
log_error ("p15: non-matching input data for Starcos:"
|
||||
" hash=%d len=%zu\n", hashalgo, indatalen);
|
||||
err = gpg_error (GPG_ERR_INV_VALUE);
|
||||
xfree (frame);
|
||||
goto leave;
|
||||
}
|
||||
framelen = indatalen - oidbuflen;
|
||||
|
Loading…
Reference in New Issue
Block a user