mirror of
https://github.com/containerd/containerd.git
synced 2026-11-07 05:47:40 +00:00
The `createAndCopy` function is only called when `nw.w` is nil
in order to create a new writer and prepare it. The current code
is attempting to close `nw.w` when there is a copy error. The
correct behavior would be to close the new writer and not touch `nw.w`.
Signed-off-by: Derek McGowan <derek@mcg.dev>
(cherry picked from commit b9cf0d75a9)
Signed-off-by: Derek McGowan <derek@mcg.dev>