mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-06 01:11:23 +00:00
Add missing Close in initrd creation
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
@@ -111,6 +111,7 @@ func tarToInitrd(image []byte) ([]byte, []byte, string, error) {
|
||||
if err != nil {
|
||||
return []byte{}, []byte{}, "", err
|
||||
}
|
||||
iw.Close()
|
||||
return kernel, w.Bytes(), cmdline, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user