1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

kbx: Fix memory leak.

* kbx/keybox-update.c (blob_filecopy): Goto leave instead of return.

--

GnuPG-bug-id: 5393
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Jakub Jelen 2021-04-13 14:35:04 +09:00 committed by NIIBE Yutaka
parent 4c8be54cc4
commit 51bbd99a3c

View File

@ -294,7 +294,7 @@ blob_filecopy (int mode, const char *fname, KEYBOXBLOB blob,
{
es_fclose (fp);
es_fclose (newfp);
return rc;
goto leave;
}
}
@ -306,7 +306,7 @@ blob_filecopy (int mode, const char *fname, KEYBOXBLOB blob,
{
es_fclose (fp);
es_fclose (newfp);
return rc;
goto leave;
}
}