mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-24 03:15:36 +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 {
|
if err != nil {
|
||||||
return []byte{}, []byte{}, "", err
|
return []byte{}, []byte{}, "", err
|
||||||
}
|
}
|
||||||
|
iw.Close()
|
||||||
return kernel, w.Bytes(), cmdline, nil
|
return kernel, w.Bytes(), cmdline, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user