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
1 changed files with 2 additions and 2 deletions

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;
}
}