mirror of
https://git.proxmox.com/git/fwupd
synced 2025-11-03 16:51:34 +00:00
trivial: Fix a tiny resource leak if the signature file cannot be opened
Found using Coverity.
This commit is contained in:
parent
4417c062fe
commit
dd7713d27d
@ -941,6 +941,7 @@ fwupd_client_update_metadata (FwupdClient *client,
|
||||
}
|
||||
fd_sig = open (signature_fn, O_RDONLY);
|
||||
if (fd_sig < 0) {
|
||||
close (fd);
|
||||
g_set_error (error,
|
||||
FWUPD_ERROR,
|
||||
FWUPD_ERROR_INVALID_FILE,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user