Set parsed to nil before exiting function

This commit is contained in:
Fred Boniface 2024-04-13 21:44:53 +01:00
parent 6ec8cd8895
commit dc958ac717

View File

@ -47,6 +47,7 @@ func runCifFullDownload(cfg *helpers.Configuration) error {
log.Msg.Warn("CIF Data updated, but metadata write failed")
}
parsed = nil
return nil
}
@ -90,6 +91,7 @@ func runCifUpdateDownload(cfg *helpers.Configuration, metadata *dbAccess.CifMeta
}
metadata = generateMetadata(&parsed.header)
parsed = nil
}
ok := dbAccess.PutCifMetadata(metadata, dailyUpdateType)