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:
parent
4c8be54cc4
commit
51bbd99a3c
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user