mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01: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:"
|
log_error ("p15: non-matching input data for Starcos:"
|
||||||
" hash=%d len=%zu\n", hashalgo, indatalen);
|
" hash=%d len=%zu\n", hashalgo, indatalen);
|
||||||
err = gpg_error (GPG_ERR_INV_VALUE);
|
err = gpg_error (GPG_ERR_INV_VALUE);
|
||||||
|
xfree (frame);
|
||||||
goto leave;
|
goto leave;
|
||||||
}
|
}
|
||||||
framelen = indatalen - oidbuflen;
|
framelen = indatalen - oidbuflen;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user