FIX close body

Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
This commit is contained in:
Nicolas Lamirault 2016-01-12 18:31:54 +01:00
parent f0c39d9f6b
commit 1026d69158

View File

@ -66,7 +66,7 @@ func (fetcher *ArchlinuxFetcher) FetchUpdate() (resp updater.FetcherResponse, er
log.Errorf("could not download Archlinux CVE wiki content: %s", err)
return resp, cerrors.ErrCouldNotDownload
}
defer r.Body.Close()
flag, err := database.GetFlagValue(archlinuxUpdaterFlag)
if err != nil {
return resp, err