trivial: Fix a tiny resource leak if the signature file cannot be opened

Found using Coverity.
This commit is contained in:
Richard Hughes 2016-11-09 19:28:38 +00:00
parent 4417c062fe
commit dd7713d27d

View File

@ -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,