mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-22 02:21:34 +00:00
Add missing Close in initrd creation
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
cc2a3a645f
commit
6187570b7a
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user