fix: close manifest file (#1479)

Signed-off-by: guangwu <guoguangwug@gmail.com>
This commit is contained in:
guangwu 2024-04-10 19:41:53 +08:00 committed by GitHub
parent 7b68b7827f
commit 2d373f16fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -135,6 +135,7 @@ func ReadManifestSnapshotForDir(dir string) (Manifest, error) {
}
return nil, err
}
defer r.Close()
return ReadManifestSnapshot(r)
}