fix(libscan): delete map that keeps all file contents detected by FindLock to save memory (#1556)

* fix(libscan): delete Map that keeps all files detected by FindLock to save memory

* continue analyzing libs if err occurred

* FindLockDirs

* fix

* fix
This commit is contained in:
Kota Kanbe
2022-11-10 10:19:15 +09:00
committed by GitHub
parent 96333f38c9
commit 1d97e91341
6 changed files with 134 additions and 119 deletions

View File

@@ -1155,7 +1155,7 @@ func (o *debian) checkrestart() error {
o.Packages[p.Name] = pack
for j, proc := range p.NeedRestartProcs {
if proc.HasInit == false {
if !proc.HasInit {
continue
}
packs[i].NeedRestartProcs[j].InitSystem = initName