mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
scd: Fix memory leaks.
* scd/apdu.c (apdu_dev_list_start): Free DL. * scd/app-nks.c (pubkey_from_pk_file): Fix typo in condition. -- GnuPG-bug-id: 5393 Signed-off-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
parent
cd66b2eb0d
commit
7cbe29c4fb
2 changed files with 5 additions and 1 deletions
|
@ -372,7 +372,7 @@ pubkey_from_pk_file (app_t app, int pkfid, int cfid,
|
|||
|
||||
newlen = 1 + buflen[i] - offset[i];
|
||||
newbuf = xtrymalloc (newlen);
|
||||
if (!newlen)
|
||||
if (!newbuf)
|
||||
{
|
||||
err = gpg_error_from_syserror ();
|
||||
xfree (buffer[0]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue